home *** CD-ROM | disk | FTP | other *** search
/ Canadian Geographic Explorer / Canadian Geographic Explorer.iso / pc / comp.z / IWORKS.HLP < prev    next >
Encoding:
Text File  |  1996-05-01  |  218.5 KB  |  5,261 lines

  1. @title{ImageWorks}{ImageWorks Data Browser}
  2. @keyword{ImageWorks}
  3.  
  4.  ImageWorks (or PCI Image Handler) is an image display and manipulation program
  5.  from PCI Enterprises and is part of PCI's image analysis software.
  6.  Imageworks must be licensed in order to use all available functions.
  7.  If this program is NOT licensed, then it becomes the PCI Image Handler,
  8.  which loads images and performs a few other sample ImageWorks functions
  9.  for demonstration purposes only.
  10.  
  11.  Throughout this on-line help documentation, this program is referred to
  12.  by its licensed name ``ImageWorks'', instead of its unlicensed name
  13.  ``Image Handler''.  If you would like to license this program and enable all
  14.  functions, contact PCI at:
  15.  
  16.   PCI Enterprises
  17.   50 West Wilmot Street, Unit 200E
  18.   Richmond Hill, Ontario, Canada  L4B 1M5
  19.   Tel: (905) 764-0614
  20.   Fax: (905) 764-9604
  21.   Email: sales@pci.on.ca
  22.  
  23.  In the United States, contact:
  24.  
  25.   PCI Remote Sensing Corporation
  26.   1925 N. Lynn Street, Suite 803
  27.   Arlington, VA  22209, U.S.A.
  28.   Tel: (703) 243-3700
  29.   Fax: (703) 243-3705
  30.   Email: sales@pci.on.ca
  31.  
  32.  See Also: {CLWORKS}Classify Menu
  33.  
  34. 1    Preferences
  35. @keyword{Preferences Customization}
  36. @index{Preferences File}
  37.  
  38.  Certain configuration items for ImageWorks may be stored in an ImageWorks
  39.  preference file.  The preference file is named imageworks.prf (or
  40.  imagewor.prf on systems with an 8.3 name space like MicroSoft Windows).
  41.  
  42.  The preference file is a simple text file containing text lines with
  43.  a preference name, a colon and a value.  For instance, ImageWorks can
  44.  have the default cursor colour controlled via the preference file, and
  45.  the preference name is "CursorColour".  The following line in the
  46.  preference file would set the default cursor colour.
  47.  
  48.   CursorColour: Red
  49.  
  50.  Much like other PCI, files it is possible to have a preference file in 
  51.  various locations: in the local directory, the users home directory,
  52.  the group procedure directory and the system wide procedure directory.  If
  53.  more than one of these files is found, they will all be read in order with
  54.  the most local files being processed last and taking precedence over the
  55.  more global files.
  56.  
  57.   - imageworks.prf (most local)
  58.   - $HOME/imageworks.prf
  59.   - $PCIGROUP/etc/imageworks.prf
  60.   - $PCIHOME/etc/imageworks.prf (most global)
  61.  
  62.  See Also: {..|}Motif Customization
  63.  
  64. 2    Adding Menu Items
  65. @keyword{Menu Items}
  66.  
  67.  The Menu preference can be used to add menu items to the ImageWorks 
  68.  main menubar menus.  In fact new menus can also be added.
  69.  
  70.  The data arguments to the Menu preference have the following fields.
  71.  
  72.   - field 1: The name of the procedure to run if the entry is selected, or
  73.              an empty string in double quotes if this item is to be a new
  74.              pulldown menu.
  75.   - field 2: The visible text to be placed on the menu item.
  76.   - field 3: The name of the pulldown menu under which to place the new
  77.              menu item, or the name of the new pulldown menu if field 2 is
  78.              an empty string.  The existing pulldown menus in ImageWorks are 
  79.              named FileMI, EditMI, ViewMI, ToolsMI and HelpMI.
  80.   - field 4: The name of the new menu item (should be unique).
  81.  
  82.  The names of all the menu items in ImageWorks can be established by 
  83.  running the DUMPMENU procedure in the ImageWorks modelling window. 
  84.  
  85.  Example:
  86.  
  87.  This item in the preference file would add a new menu item to the Tools
  88.  menu (which is named ToolsMI).   The new entry would be named BounceMI, and
  89.  have visible text "Bounce...".  When selected the EASI+ procedure BOUNCE.EAS
  90.  would be run.
  91.  
  92.   Menu: BOUNCE "Bounce..." ToolsMI BounceMI
  93.  
  94.  The following example would create a new menu called Misc (and named
  95.  MiscMI), and add one item to that menu which would invoke the EASI+ 
  96.  procedure AUTOLOAD.EAS.
  97.  
  98.   Menu: "" "Misc" MiscMI
  99.   Menu: AUTOLOAD "Auto Load" MiscMI AutoLoadMI
  100.  
  101.  See Also: {..|}Disabling Menu Items
  102.  
  103. 2    Disabling Menu Items
  104. @keyword{Menu Items}
  105.  
  106.  The Disable-Menu preference can be used to remove menu items, or whole menus
  107.  from the ImageWorks main menubar.  This is primarily useful for making a
  108.  simplified version of ImageWorks available, or to remove a menu item so that
  109.  a replacement can be provided using the ``Menu'' preference.
  110.  
  111.  The data arguments to the Disable-Menu preference are the list of names 
  112.  leading to the particular menu item to be disabled.  The names of all the
  113.  menu items in ImageWorks can be established by running the DUMPMENU procedure
  114.  in the ImageWorks modelling window.
  115.  
  116.  The Disable-Menu preference is applied to the ImageWorks menubar before 
  117.  the Menu preference, so it is possible to disable a PCI provided menu item,
  118.  and replace it with a user provided EASI script.
  119.  
  120.  Example:
  121.  
  122.  The following preferences would remove the filter item on the Tools menu
  123.  and remove the entire View menu.
  124.  
  125.   Disable-Menu: ToolsMI FilterMI
  126.   Disable-Menu: ViewMI
  127.  
  128.  See Also: {..|}Adding Menu Items
  129.  
  130. 2    Cursor Colour
  131. @keyword{CursorColour}
  132.  
  133.  The CursorColour preference can be used to modify the default colour of the
  134.  cursor in the image display windows.  The default is white, but this value
  135.  will be overridden if the user changes the colour in the Cursor Control
  136.  panel.
  137.  
  138.  The value of this preference may be any recognised cursor colour, or 
  139.  any RGB colour in the format ``(RGB: RRR GGG BBB)''.
  140.  
  141.  Example:
  142.  
  143.  The first line would set the default cursor colour to Red, while the second
  144.  would set the default colour to the explicit provided RGB value (red=200,
  145.  green=128, blue=64).
  146.  
  147.   CursorColour: Red
  148.   CursorColour: (RGB: 200 128 64)
  149.  
  150.  See Also: {..|..|}Cursor Control
  151.  
  152. 2    Graphic Colour
  153. @keyword{GraphicColour}
  154.  
  155.  The Graphic#Colour preference can be used to establish a default colour
  156.  for a specified graphic plane.  The ``#'' sign is replaced by the number
  157.  of the graphic plane, and the argument value can be any recognised 
  158.  colour name or RGB tuple.
  159.  
  160.  Example:
  161.  
  162.  Set the first three graphic plane colours to shades of grey.
  163.  
  164.   Graphic1Colour: 50 50 50
  165.   Graphic2Colour: 125 125 125
  166.   Graphic3Colour: 200 200 200
  167.  
  168.  See Also: {..|..|}Graphic Info
  169.  
  170. 2    Naming A Colour
  171. @keyword{NamedColor}
  172.  
  173.  The NamedColour preference allows the user to defined a new named colour
  174.  to the system.  This colour should appear in option menus used to select
  175.  a colour. 
  176.  
  177.  The value arguments to the NamedColour resource should be a name for the
  178.  new colour followed by the red, green and blue components of that colour.
  179.  If the colour name is more than one word, it should be enclosed in double
  180.  quotes.
  181.  
  182.  Example:
  183.  
  184.  Create a new colour called Slate Grey with the specified RGB value.
  185.  
  186.   NamedColour: "Slate Grey" 40 40 40
  187.  
  188. 2    Default File Extensions
  189. @keyword{DefaultExtension}
  190.  
  191.  The DefaultExtensions preference allows the user to define the default
  192.  extension, or extensions they would like to see in database selection
  193.  dialogs.  They can select multiple extensions they would like see; however,
  194.  on some systems (such as X/Motif) only the first extension will have an
  195.  effect.
  196.  
  197.  Note that this preference only affects the primary file selection mechanism
  198.  for image and vector files, not the file selectors used to access ancillary
  199.  text files.
  200.  
  201.  The list of extensions should be separated by vertical bar (pipe) symbols,
  202.  and there should be no space in the list of extensions.  Each extension
  203.  should be formed with an asterix followed by a dot followed by the extension
  204.  as shown in the example below there the user requests to see files with
  205.  the extensions .pix (PCIDSK), .tif (TIFF) and .jpg (JPEG JFIF).
  206.  
  207.  Example:
  208.  
  209.   DefaultExtensions: *.pix|*.tif|*.jpg
  210.   
  211. 2    Shape Save Limit
  212. @keyword{ShapeSaveLimit Undo Redo Limit}
  213.  
  214.  The ShapeSaveLimit preference allows the user to define the maximum
  215.  number of shapes that can be saved in the Vector Editor's undo/redo
  216.  buffer when changes are made with a vector editing operation.  The
  217.  default for this preference is 100 shapes.  Hence, if a user performs
  218.  a single vector editing operation that affects more than ShapeSaveLimit
  219.  shapes (such as a Move), then the changes caused by this operation will
  220.  not be saved in the undo/redo buffer so they can not be undone, and all
  221.  of the previous editing changes will be cleared from the undo/redo buffer.
  222.  
  223. 2    Compact Vectors
  224.  
  225.  The CompactVectors preference can be used to request that ImageWorks store
  226.  vectors in a more compact form in memory than is the default.  However,
  227.  this imposes a price is redraw performance.  The CompactVectors preference
  228.  can have the following values:
  229.  
  230.  - OFF: Use the default (memory intensive, but fast) in memory storage form
  231.         for vectors.
  232.  - ON: Use a compact form to store the vectors in memory that is slower but
  233.        doesn't lose any information.
  234.  - 2D: Use the compact (ON) format, and don't bother storing a Z coordinate
  235.        for any of the vertices.
  236.  - Float: Use the compact (ON) format, and don't keep full double precision
  237.           (8 byte binary numbers) accuracy for vector points.  Instead use
  238.           float's (4 byte binary numbers) imposing a modest penalty in speed
  239.           and accuracy in order to save more memory.
  240.  - 2D Float: Apply both the 2D and Float options at the same time.
  241.  
  242.  The CompactVectors preference can be set, or overridden with an environment
  243.  variable called CompactVectors.  The value of the environment has the same
  244.  interpretation as the preference.
  245.  
  246.  Example:
  247.   CompactVectors: ON
  248.  
  249. 1       Cursor Zoom
  250. @index{Cursor Zoom}{Imagery!Zoom}
  251. @keyword{imagery zoom cursor}
  252.  
  253.  The Cursor Zoom panel allows the user to view the contents of
  254.  the main ImageWorks display at a different magnification level.
  255.  
  256.  Even though the ImageWorks control panel provides direct
  257.  magnification, the Cursor Zoom window allows the user to have
  258.  a separate window that contain a magnified image.
  259.  
  260.  The Cursor Zoom panel can be accessed via the View pull down menu.
  261.  The Cursor Zoom panel contains several controls at the top
  262.  of the window followed by an region where the zoomed image
  263.  is displayed.
  264.  
  265.  The first left control is a toggle push button labelled "Hold".
  266.  When depressed, the user can move the cursor from the ImageWorks
  267.  main display window without affecting the view inside the
  268.  Cursor Zoom window.
  269.  If this button is not pressed in, the position and region under
  270.  which the cursor is at in the main ImageWorks display window is
  271.  also displayed in the zoom window.
  272.  
  273.  There is an option menu that displays different index values
  274.  where the user can pick a value to have the image magnified.
  275.  
  276.  The other option menu provides a list of enhancement operations
  277.  that can be applied to the image displayed in the zoomed
  278.  window.
  279.  In addition to the standard enhancement technique, there are two
  280.  special options called "Hold" and "Slave" under this option menu.
  281.  The "Hold" option is used to "Hold" the zoomed image enhancement.
  282.  While the "Slave" option is used such that whenever a new
  283.  enhancement is applied to the main ImageWorks display window,
  284.  the enhancement is also applied to the Cursor Zoom imagery.
  285.  
  286.  The user can have several Cursor Zoom window displayed. Each of
  287.  the cusor zoom panel can be used to display a zoom image region
  288.  and enhanced independently by using the controls that are
  289.  available from the Cursor Zoom window.
  290.  
  291. 1    Motif Customization
  292. @keyword{Customization}{Fonts}
  293. @index{Customizing ImageWorks}
  294.  
  295.  Customizing the Appearance of ImageWorks on X/Motif systems.
  296.  
  297.  ImageWorks resources, such as fonts and colours, can be customized on
  298.  operating systems which use X-Windows Motif through the .Xdefaults
  299.  file which resides in the user's login directory. The resources
  300.  available are as follows:
  301.  
  302.   imageworks*fontList:              <font>   (e.g., fixed)
  303.  
  304.  General purpose font for most of the application. 
  305.  
  306.   imageworks*annotationFont:        <font>   (e.g., fixed)
  307.  
  308.  Extra font available in image and graphic annotation. 
  309.  
  310.   imageworks*fixedFont:             <font>   (e.g., 10x20)
  311.  
  312.  Font used in areas requiring monospaced characters (e.g. main text
  313.  in Help Panel). 
  314.  
  315.   imageworks*background:            <colour>  (e.g., grey)
  316.  
  317.  Background colour for most panels. 
  318.  
  319.   imageworks*MenuBar*background:    <colour>  (e.g., thistle)
  320.  
  321.  Colour of all menu bars. 
  322.  
  323.   imageworks*TitleBar*background:   <colour>  (e.g., lightsteelblue)
  324.  
  325.  Colour for all title bars.
  326.  
  327.  Available fonts and colours will depend on your system. Under some
  328.  environments (such as HP VUE) customization is handled by means other
  329.  than the .Xdefaults file. See the operating system user documentation for 
  330.  these environments.
  331.  
  332.  To set these resources system wide, an app-default file may be
  333.  created called `imageworks', with the same format as the .Xdefaults
  334.  file. It is typically placed in the directory
  335.  /usr/lib/X11/app-defaults. 
  336.  
  337. 1    Copyright
  338. @keyword{Copyright}
  339. @index{Copyright Notice}
  340.  
  341.    ImageWorks, Version 6.0, Release date: December 1, 1995
  342.  
  343.                            COPYRIGHT
  344.  
  345.  Software copyrighted (c) by PCI, 50 West Wilmot St., Richmond
  346.  Hill, Ontario, CANADA, L4B 1M5. Tel: (905) 764-0614 
  347.  
  348.                        RESTRICTED RIGHTS
  349.  
  350.                       CANADIAN GOVERNMENT
  351.  
  352.  Use, duplication, or disclosure is subject to restrictions as set
  353.  forth in DSS 9400-18 `General Conditions - Short Form - Licensed
  354.  Software'. 
  355.  
  356.                        U.S. GOVERNMENT
  357.  
  358.  Use, duplication, or disclosure is subject to restrictions as set
  359.  forth in FAR clause 52.227-19 `Commercial Computer Software -
  360.  Restricted Rights' and in subparagraph (c) (1) (ii) of the
  361.  `Rights in Technical Data and Computer Software Clause' at DFARS
  362.  52.227-7013. 
  363.  
  364. 1    Command Line Options
  365. @keyword{Command Line}{-datasize}{-image}{-graphic}
  366. @keyword{-nocontrol}{-noconfig}{-mainwin}{-share}{-noshare}{-nomenu}
  367. @keyword{-debug}{-nodebug}{-mmap}{-nommap}{-8}{-24}{-play}{-cmd}
  368.  
  369.  Note:  Command Line Options are not supported on Mac OS.
  370.  
  371.   Usage: imageworks [options]
  372.  
  373.  ImageWorks accepts a number of command line options. Some of these
  374.  are for debugging purposes, while others can be used to defined
  375.  operating modes.  Following is a list of command line options:
  376.  
  377. @verbatim
  378.   -datasize x_size y_size 
  379. @end
  380.  
  381. @index{Command Line Options!datasize}
  382.  
  383.  The -datasize option is used to define the size of the image and
  384.  graphic planes in memory. It overrides the datasize defined in the
  385.  parameter file (PRM.PRM), and suppresses the ImageWorks Configuration
  386.  Panel.  The default size is 512 x 512, if there is no PRM.PRM file.
  387.  
  388. @verbatim
  389.   -image n_planes 
  390. @end
  391.  
  392. @index{Command Line Options!image planes}
  393.  
  394.  The -image option allows the number of in-memory image planes to be 
  395.  configured. The argument overrides the number of image planes defined 
  396.  in the parameter file, and suppresses the ImageWorks Configuration Panel.
  397.  The default number of image planes is 3, if there is no parameter file.
  398.  
  399. @verbatim
  400.   -graphic n_planes 
  401. @end
  402.  
  403. @index{Command Line Options!graphic planes}
  404.  
  405.  The -graphic option allows the number of in-memory graphic planes 
  406.  to be configured. The argument overrides the number of graphic planes 
  407.  defined in the parameter file, and suppresses the ImageWorks Configuration
  408.  Panel. The default number of graphic planes is 8, if there is no parameter
  409.  file. The number of graphic planes may not exceed 16. 
  410.  
  411. @verbatim
  412.   -nocontrol 
  413. @end
  414.  
  415. @index{Command Line Options!nocontrol}{Command Line Options!demos}
  416. @index{Command Line Options!suppress control panel}
  417.  
  418.  The -nocontrol option suppresses the popping up of the ImageWorks
  419.  General Control panel. This is primarily useful for hands off demos.
  420.  
  421. @verbatim
  422.   -noconfig
  423. @end
  424.  
  425. @index{Command Line Options!noconfig}{Command Line Options!demos}
  426. @index{Command Line Options!suppress configuration panel}
  427.  
  428.  The -noconfig option suppresses the popping up of the ImageWorks 
  429.  configuration panel.  This is primarily useful for hands off demos.
  430.  
  431. @verbatim
  432.   -nomenu
  433. @end
  434. @index{Command Line Options!nomenu}
  435.  
  436.  The -nomenu command line option supresses the menubar from appearing in
  437.  the main ImageWorks display window.  This is primarily useful for hands off
  438.  demos.
  439.  
  440. @verbatim
  441.   -name window-name
  442. @end
  443.  
  444. @index{Command Line Options!window name}
  445.  
  446.  This option allows the name appearing on the window frame of the main
  447.  ImageWorks window to be overridden.  This is the equivalent of setting a
  448.  non-default value in the VDn: parameter in the PRM.PRM file.
  449.  
  450. @verbatim
  451.   -mainwin display-name 
  452. @end
  453.  
  454. @index{Command Line Options!display}
  455.  
  456.  Normally, all of the ImageWorks panels appear on one display; this display 
  457.  is determined by the DISPLAY environment variable or the -display command 
  458.  line option. Sometimes, however, the user will want to display the main
  459.  image window on another display (when there are two monitors side by side,
  460.  for instance).  The -mainwin option allows the user to specify this
  461.  second display.  The `display-name' value should be the name of the display 
  462.  to which the main image window is to be redirected.
  463.  
  464. @verbatim
  465.   -cmd procedure_name
  466. @end
  467.  
  468. @index{Command Line Options!EASI procedure}
  469.  
  470.  The -cmd command line argument is used to pass an EASI Modelling Procedure
  471.  to be executed after ImageWorks startup.  The argument is the name of an
  472.  EASI procedure to be executed.  The filename should be all in upper case,
  473.  and with the extension ".EAS".  Only the base portion of the filename should
  474.  be provided (eg. `filter' instead of FILTER.EAS).
  475.  
  476. @verbatim
  477.   -play recording_file
  478. @end
  479.  
  480. @index{Command Line Options!recording playback}
  481.  
  482.  The -play command is used to trigger automatic execution of a user 
  483.  interaction recording created with the Macro Recorder.  The pathname to
  484.  the file to be executed should be provided as an argument.  The macro will
  485.  be ``played'' after the configuration panel has been popped down, so for
  486.  a fully automated startup the -noconfig commandline argument should also
  487.  be used.
  488.  
  489. @verbatim
  490.   -share 
  491.   -noshare 
  492. @end
  493.  
  494. @index{Command Line Options!shared memory}
  495.  
  496.  The -share option is used to turn on use of the X Windows Shared
  497.  Memory extension where possible. The -noshare option is used to
  498.  ensure the extension is not used. The shared memory extension speeds
  499.  up redraw speed on the screen, sometimes by as much as a factor of
  500.  three if the display is local to the machine running ImageWorks.
  501.  However, on many systems the shared memory extension causes problems
  502.  with proper screen updating when performing Image, Graphic, and
  503.  Vector editing. Thus shared memory is defaulted to not being used.
  504.  
  505.  People wishing to squeeze extra graphic performance out of
  506.  ImageWorks are encouraged to try out the -share option. 
  507.  
  508. @verbatim
  509.   -mmap 
  510.   -nommap 
  511. @end
  512.  
  513. @index{Command Line Options!memory mapped disk IO}
  514.  
  515.  The -mmap option enables the used of memory mapped disk IO where
  516.  possible. Its use is equivalent to defining the environment
  517.  variable ``ENABLE_MMAP''. The -nommap option disables memory mapped
  518.  disk IO, even if the ``ENABLE_MMAP'' environment variable is defined.
  519.  
  520.  Memory mapped disk IO can provide IO speedups of up to a factor of
  521.  three on some machines. However, on at least a few machines, the use
  522.  of memory mapped IO can cause problems. Those interested in speeding
  523.  up IO are encouraged to experiment with the -mmap option.  This option 
  524.  only works on some systems.
  525.  
  526. @verbatim
  527.   -8 
  528. @end
  529.  
  530. @index{Command Line Options!8-bit}
  531.  
  532.  The -8 option forces ImageWorks to consider only 8-bit visuals. 
  533.  
  534. @verbatim
  535.   -24 
  536. @end
  537.  
  538. @index{Command Line Options!24-bit}
  539.  
  540.  The -24 option forces ImageWorks to consider only 24-bit visuals. 
  541.  
  542. @verbatim
  543.   -extra
  544. @end
  545.  
  546. @index{Command Line Options!extra options}
  547.  
  548.  This option will enable several extra options in the ``Tools'' pulldown 
  549.  menu and possibly elsewhere.  These functions are not considered to
  550.  be release ready, but may be interesting to experiment with.
  551.  
  552. @verbatim
  553.   -showerror 
  554. @end
  555.  
  556. @index{Command Line Options!standard out redirection}
  557. @index{Command Line Options!standard error redirection}
  558.  
  559.  On the Sun, standard out and standard error are redirected to
  560.  /dev/null. The -showerror option prevents this redirection. 
  561.  
  562. @verbatim
  563.   -debug [n]
  564. @end
  565.  
  566. @index{Command Line Options!debug}
  567.  
  568.  The -debug option places ImageWorks in debugging mode. Plentiful output 
  569.  is sent to standard error.
  570.  
  571. @verbatim
  572.   -nodebug 
  573. @end
  574.  
  575. @index{Command Line Options!debug}
  576.  
  577.  The -nodebug option ensures that ImageWorks is not run in debugging mode. 
  578.  
  579. 1    Configuration
  580. @keyword{Configuration Imagery Graphics}
  581. @index{Configuration}{Imagery!Configuration}{Graphics!Configuration}
  582.  
  583.  The ImageWorks Configuration Panel allows the user to 
  584.  set up the configuration of an ImageWorks session according 
  585.  to the database file on which the user is going to work. 
  586.  
  587.  According to the number of channels and the image size of a  
  588.  database, the user can choose to have an ImageWorks session
  589.  that can display an image with an appropriate size containing
  590.  a specific number of image/graphic planes.
  591.  
  592.  The Configuration panel is invoked automatically if the user
  593.  does not specify any options when starting ImageWorks. The
  594.  automatic invocation will not take place if ImageWorks is 
  595.  launched from VDINIT or XPACE.
  596.  
  597.  The Configuration panel contains three main sections: the
  598.  `Configuration Method', `File Information' and a
  599.  `User Defined Information' section.
  600.  
  601.  The Configuration panel also displays an approximate memory requirement that 
  602.  must be available to execute ImageWorks.
  603.  
  604.  Pressing the ``Accept'' push button will start ImageWorks
  605.  with the specified configuration, whereas the ``Exit'' push
  606.  button will quit ImageWorks. If the selected configuration method 
  607.  is ``Use Image File...'', the user will be able to
  608.  press the ``Accept & Load'' push button to start ImageWorks
  609.  and load in the specified database file.
  610.  
  611. 2    Configuration Method
  612. @index{Configuration Method}{Configuration Panel!Configuration Method}
  613.  
  614.  This section allows the user to select a configuration
  615.  method. An image file can be selected (Use Image File...)
  616.  or appropriate configuration information can be entered
  617.  in the ``User Defined Information'' area (User Defined).
  618.  
  619.  By selecting ``Use Image File...'' 
  620.  the user will be able to select a database file;
  621.  the configuration information from the database file will then be 
  622.  displayed in the ``File Information'' section.
  623.  
  624.  By selecting ``User Defined'', the user will be able
  625.  to enter configur information in the ``User Defined
  626.  Information'' section.  The ``File Information'' section will 
  627.  be cleared.
  628.  
  629.  NOTE: The selected configuration method is displayed in the
  630.  title bar after ``Configuration Method:''.
  631.  
  632. 2    File Information Section
  633. @index{Configuration Panel!File Information}
  634.  
  635.  The File Information section gives some basic information   
  636.  about the database file on which the user chooses to work. 
  637.  This section is only accessible when the user selects the
  638.  ``Use Image File...'' method.
  639.  
  640.  This section displays the size of the image and the number
  641.  of channels from a selected database.  Knowing the size of 
  642.  the database window, and the number of channels it contains, 
  643.  the user can configure the ImageWorks session accordingly.
  644.  
  645.  The ``Reduce to'' scale allows the user to specify a 
  646.  percentage of the database image size that the user
  647.  will view.  When the user selects a database file, the 
  648.  reduction slider value will initially be set to a default value. 
  649.  The up/down arrows permit the user to step up/down to another
  650.  reduction value.
  651.  
  652. 2    User Defined Information
  653. @index{Configuration Panel!User Defined Information}
  654.  
  655.  The User Defined Information section allows the user 
  656.  to set the size of the imagery, the size of the ImageWorks window, 
  657.  and the number of image and graphic planes to be used.
  658.  
  659.  The values in the text fields can be changed by using the
  660.  up/down arrows or just by typing in a value.
  661.  
  662.  The X and Y input text fields for the Image Size allow the user
  663.  to specify the size of the image to be used in ImageWorks.
  664.  
  665.  The X and Y input text fields for the Visible Window allow
  666.  the user to specify the size of the ImageWorks display window.
  667.  
  668.  NOTE: The X and Y window size cannot exceed the physical
  669.  screen(or monitor) size and must not be greater than
  670.  the Image Size.
  671.  
  672.  Pressing the 1:1 Aspect push button will change the values
  673.  for the Visible Window such that the image to be displayed
  674.  has a 1:1 aspect ratio and is 2/3 the size of the physical
  675.  screen.
  676.  
  677.  The user can specify the number of image planes to be used in
  678.  ImageWorks of the types 8 bit integer, 16 bit signed integer and
  679.  32 bit real.
  680.  
  681.  The user can choose the number of graphic planes to be 
  682.  displayed in ImageWorks via the Graphic Planes radio buttons.
  683.  
  684.  See Also: VDINIT, {..|..|}Command Line Options
  685.  
  686. 1    Control Panel
  687. @keyword{Gun Graphics Vectors Imagery Enable Disable Zoom Cursor}
  688. @index{Colour Gun Mappings}{Graphics!Enable}{Imagery!Colour Guns}{Zoom}
  689. @index{Control Panel}
  690.  
  691.  The ImageWorks Control Panel is used to view and control many
  692.  aspects of the ImageWorks configuration. The image display mode
  693.  (Off/RGB/BW/PC), colour gun mappings, graphic plane enabledness, and vector
  694.  layer enabledness are all controlled from the Control Panel.  The Control
  695.  panel also allows for quick enhancement, zooming, panning, and viewing of
  696.  cursor coordinates.
  697.  
  698.  The Control Panel is launched automatically when ImageWorks is
  699.  started. If it is popped down, it can be popped back up by selecting
  700.  ``Control Panel'' from the ``Tools'' menu.
  701.  
  702. @index{Control Panel!Cursor Control}
  703.  
  704.  The top section of the Control Panel is the cursor area. On the Cursor
  705.  title bar is an option menu controlling the cursor coordinates to
  706.  be displayed beneath the title bar.  The possible cursor coordinate values 
  707.  are Display (for display coordinates), Database (for current file 
  708.  coordinates), Geocoded (for georeferenced coordinates if possible), and 
  709.  Geographic (for geographic (Lat/Long) coordinates).  See the Cursor 
  710.  Control section for a more detailed explanation of these four options.
  711.  
  712.  Beneath the cursor title bar are the cursor coordinates in the current 
  713.  selected grid system. These fields are output only, but the coordinates
  714.  may be updated on the Cursor Control panel.  On occasions when it is 
  715.  impossible to translate the cursor position into the requested coordinates 
  716.  the cursor position will be blank.
  717.  
  718.  Below the cursor position are three fields indicating the digital image
  719.  values of the pixel pointed to by the cursor.  Each of these values is
  720.  separated from the image plane to which it corresponds, by a colon.  The image
  721.  planes selected for the Red, Green, and Blue colour guns are the ones 
  722.  displayed.
  723.  
  724. @index{Control Panel!Image Control}
  725.  
  726.  Beneath the Cursor area is the Image control area. The
  727.  overall display mode of ImageWorks is set using the pull down menu on
  728.  the ``Imagery'' title bar. The `Off' button disables the display of imagery.
  729.  The `RGB' button enables the three plane RGB display mode. The `BW'
  730.  button enables the black and white display mode. Black and white display
  731.  mode is the same as
  732.  RGB mode, except that all three colour guns are locked on the same image
  733.  plane. The `PC' button enables the Pseudocolour display mode in which
  734.  one image plane is run through a Pseudocolour Table (PCT) to produce
  735.  a colour image.  This colour image may appear black and white if a 
  736.  grey scale is used in the Pseudocolour table.
  737.  
  738.  Below the Image title bar is the image plane to colour gun mapping
  739.  table. Each image plane (to a maximum of 8) has a numbered column in
  740.  the table with three rows, one for each colour gun. In each row,
  741.  exactly one image plane will be selected indicating the source of
  742.  data for the colour gun. The selected image plane is highlighted in
  743.  the colour of the corresponding colour gun.  To view more image planes 
  744.  beyond the first eight, use the Image Info panel, or the DCP PACE program.
  745.  
  746.  For example, the following would indicate that ImageWorks is using
  747.  image plane one for red, image plane two for green, and image plane
  748.  three for blue; image plane four is currently not displayed.
  749.  
  750. @verbatim
  751.   Image plane:  1  2  3  4
  752.   Red         X  o  o  o
  753.   Green         o  X  o  o
  754.   Blue          o  o  X  o
  755. @end
  756.  
  757. @index{Control Panel!Graphics}
  758.  
  759.  The Graphics area is used to enable and disable the display of graphic
  760.  planes easily. The ``All On'' and ``All Off'' buttons on the
  761.  title bar are used to enable or disable all the graphic planes at
  762.  once. The buttons under the title bar are used to enable or disable
  763.  one graphic plane at a time. The graphic planes are enabled when
  764.  they appear depressed.  If there are no graphic planes available this
  765.  area will be missing from the Control Panel.
  766.  
  767. @index{Control Panel!Vectors}
  768.  
  769.  The Vectors area is used to enable and disable the display of vector layers
  770.  easily. The ``All On'' and ``All Off'' buttons on the
  771.  title bar are used to enable or disable all the vector layers at
  772.  once. The buttons under the title bar are used to enable or disable
  773.  one vector layer at a time. The vector layers are enabled when
  774.  they appear depressed.  No more than eight vector layers can be controlled
  775.  from the Control Panel, and blank buttons indicate that no corresponding 
  776.  vector layers yet exist.
  777.  
  778. @index{Control Panel!Enhancements}
  779.  The Enhancements area is used to apply quick enhancements to the
  780.  currently visible image planes. This is done by creating Lookup
  781.  Tables (LUTs) to improve the contrast of the imagery. The `None'
  782.  button sets the LUT for each of the image planes to a linear ramp.
  783.  This results in no changes to the imagery data values.
  784.  
  785.  The Infreq, Linear, Equal, and Root buttons apply an infrequency, linear,
  786.  equalization, or square root curve to the LUT, based on end points
  787.  between which the curve is applied. The end-points are computed by
  788.  examining the histogram of the sub-window of image data showing in the
  789.  main image window, ignoring values of 0 and 255, and applying a 2%
  790.  tail trim.  The infrequency enhancement does not apply a 2% tail trim.
  791.  
  792.  To better visualize the LUT that these enhancements are creating,
  793.  pop up the LUT Editing panel (from the Edit pulldown menu) before 
  794.  applying the different quick enhancements on the control panel.  
  795.  This panel is discussed in more detail in the LUT Editing subtopic.
  796.  
  797. @index{Control Panel!Zoom}
  798.  
  799.  The last area of the Control Panel is the Zoom area. On the title
  800.  bar is a Zoom Level Control. The pull down menu allows you to select
  801.  the magnification value.  The `off' selection indicates ``overview'' 
  802.  mode which means that an overview of all the data in memory is being 
  803.  shown. This is the same as magnification level 1, if the size of the 
  804.  data in memory is the same as the size of the window in which it is 
  805.  being viewed.  
  806.  
  807.  Beneath the zoom title bar is a graphic representation of the current
  808.  view window. The outer box, a slight indentation, represents the
  809.  area of all the data in memory. The black box inside indicates the
  810.  window of data currently being viewed in the main image window. When
  811.  the view is zoomed in, the inner box will only contain a small
  812.  part of all the data. This inner box can also be grabbed and
  813.  dragged with the mouse cursor to change the view window. 
  814.  
  815.  See Also: {..|Cursor}Cursor Control, {..|}Image Info, DCP
  816.  
  817. 1    PCT Editing
  818. @keyword{PCT Editing}
  819. @index{PCT Editing}
  820.  
  821.  The PCT Editing panel contains functions for creating and/or
  822.  modifying the in-memory Pseudocolour Table. The PCT Editing panel
  823.  can be launched by selecting "PCT" from the "Edit" menu on
  824.  the main ImageWorks window.
  825.  
  826.  The Close button on the PCT Editing panel closes the PCT Editing.
  827.  The Cancel button closes the PCT Editing panel, and restores the PCT
  828.  that was in effect when the PCT Editing panel was first opened. 
  829.  
  830. 2    Predefined Pseudocolour Tables
  831. @index{PCT Editing!Predefined PCT}
  832.  
  833.  The Predefined Pseudocolour Table buttons allow the user to quickly
  834.  replace the existing PCT with a standard PCT provided by the
  835.  systems.
  836.  
  837.  Smooth 
  838.  
  839.   - A colour ramp running from dark blue to green to yellow to red 
  840.     to magenta. 
  841.  
  842.  Stepped 
  843.  
  844.   - A series of short colour ramps. 
  845.  
  846.  Grey Ramp 
  847.  
  848.   - A simple grey ramp with 0 mapped to black, and 255 mapped to
  849.     white. 
  850.  
  851.  Random 
  852.  
  853.   - A more or less random set of colours. 
  854.  
  855.  One step Undo is available after the selection of a predefined
  856.  Pseudocolour table, via the "Undo" button. 
  857.  
  858. 2    Current Pseudocolour Table
  859. @index{PCT Editing!Display PCT}
  860.  
  861.  The Current Pseudocolour Table area of the PCT Editing panel
  862.  provides a graphical and textual display of the current PCT. These
  863.  displays are used both for information, and to select a new colour 
  864.  table entry to edit.
  865.  
  866.  The colour bar on the left is a graphical representation of the PCT,
  867.  with the top representing an input value of zero, and the bottom an
  868.  input value of 255.
  869.  
  870.  The scrollable table on the right is a textual representation of the
  871.  current PCT. The table consists of four columns, and 256 entries.
  872.  The first column is the input grey level. The second, third, and
  873.  fourth columns are the red, green, and blue output values for the
  874.  given input value. Either the scroll bar or the arrow buttons can
  875.  be used to scroll through the PCT. The textual PCT representation is
  876.  not directly editable.
  877.  
  878.  It is possible to click in either the scrollable PCT window, or the
  879.  graphical PCT window in order to select a "Grey Level" to modify in
  880.  the Colour Selection area of the PCT Panel. The selected entry
  881.  becomes the new Grey Level value to edit; changes to the previous 
  882.  PCT entry are lost unless they were already applied.  It should also
  883.  be possible to select multiple PCT entries to operate on by dragging
  884.  over a series of list entries.
  885.  
  886. 2    Colour Selection
  887. @index{PCT Editing!Colour Editing}
  888.  
  889.  The colour selection portion of the PCT Editing panel is used to
  890.  modify the output colour of the currently selected PCT entry ("Grey
  891.  Level").
  892.  
  893.  It consists of a horizontal colour sampling bar across the top, a
  894.  current colour chip on the right, a slider and text field for the
  895.  red, green, and blue components, a current grey level text field, and
  896.  the Apply and Undo buttons.
  897.  
  898.  The horizontal colour sampling bar is used to conveniently select a
  899.  new colour value. Clicking within this bar will modify the current
  900.  red, green, and blue components within the Colour Selection area to
  901.  match the point clicked on. As usual, the colour change is not made
  902.  to the current PCT until the Apply button is pressed.
  903.  
  904.  The colour slider bars are used to modify the red, green, and blue
  905.  colour components of the currently mixed colour. The current component
  906.  values are shown in the text fields to the right of the slider bars. 
  907.  These fields are also editable.
  908.  
  909.  The colour chip on the right is present to show the presently mixed
  910.  colour. It is for information purposes only, and clicking on it does
  911.  nothing.
  912.  
  913.  When the "Hold Colour" button is depressed, selecting a new grey 
  914.  value will not cause the currently mixed colour to be changed.
  915.  
  916.  The "Grey Level" text field shows the entry in the PCT for which
  917.  colour selection is being performed. This field is editable; however,
  918.  each time the current Grey Level is changed, the colour selection area
  919.  is reloaded with the colour of the newly selected "Grey Level", unless
  920.  the "Hold Colour" button is depressed.
  921.  
  922.  The Apply button is used to place the currently mixed colour in the
  923.  Colour Selection area back into the PCT. The "Current PCT" is not
  924.  changed until the Apply button is pressed, applying the new colour 
  925.  to the Current PCT, and updating the main image window to reflect 
  926.  the new PCT.
  927.  
  928.  The Undo button is used to undo the last change to the "Current
  929.  PCT". It will undo the last "Apply" operation, or the last
  930.  Predefined PCT operation. Also note that the Cancel button will
  931.  cancel all changes to the PCT since the PCT Editing panel was popped
  932.  up. 
  933.  
  934.  
  935. 1    PCT Range Editing 
  936. @keyword{PCT Range Editing}
  937. @index{PCT Range Editing}
  938.  
  939.  The PCT Range Editing Panel contains functions for creating
  940.  a customized pseudocolour table(PCT). The PCT Range editing
  941.  panel is different from the regular PCT Editor because this
  942.  panel allows the user to create a PCT by applying specific
  943.  ranges of colours within the pseudocolour table.
  944.  
  945.  In the PCT Range editor panel, the user can identify two
  946.  endpoints within the image histogram to which a set of
  947.  colours can be applied. The colours can then be directly
  948.  mapped, stretched or compressed to fit within a specified
  949.  range of grey levels.
  950.  
  951.  
  952.  General steps:
  953.  
  954.  A colour range is set from the colour selection area.
  955.  The two markers off the colour bar allow the user to
  956.  specify exactly what are the starting and ending colours.
  957.  
  958.  The next step is to move the left and right marker of the
  959.  graph(histogram) to identify where the colours that were
  960.  picked should be applied.
  961.  
  962.  The lower section of the panel displays the created PCT
  963.  for previewing the selections. This section allows the user
  964.  to map/stretch or compress the colours within the chosen
  965.  range of grey level values.
  966.  
  967.  The slider bar allows the user to shift the colours
  968.  either to the left or to the right. The left and right
  969.  push buttons can be used to shift the colours by one
  970.  increment.
  971.  
  972.  See Also: {..|..|}PCT Editing
  973.  
  974. 2    Colour Selection
  975. @index{PCT Range Editing!Colour Selection}
  976.  
  977.  The colour selection section of the panel allows the user to pick
  978.  different sets of colours to use in creating the PCT. Currently
  979.  there are two modes of selection: Standard and Custom.
  980.  
  981.  The colour bar displays the colours that the user picks.
  982.  The left and right marker text fields below the colour bar
  983.  displays the grey level values represented by the markers on
  984.  the colour bar. They can also be used to move these markers to
  985.  a specific value. These values can also be modified by dragging
  986.  the markers with the mouse. In the standard mode, the markers
  987.  are filled with the colours they are pointing to.   In custom
  988.  mode the markers are filled with the choices made for the first 
  989.  and last colours in the interpolation.
  990.  
  991.  
  992. 2    Standard Colour Selection
  993. @index{PCT Range Editing!Standard Colour Selection}
  994.  
  995.  The standard colour selection displays a list of predefined
  996.  PCTs that may be used.  By selecting the Standard option,
  997.  the user can get access to the following PCT: Smooth, Stepped,
  998.  Grey Ramp, and Random.
  999.  
  1000.  The colour bar will be updated to display the colours that
  1001.  correspond to the predefined PCT selected by the user.
  1002.  
  1003.  The "Use Original PCT" push button will change the colour bar 
  1004.  to reflect the PCT loaded in ImageWorks by the user, if applicable.
  1005.  If you have loaded a PCT and want to use it, you need to press
  1006.  this button to load in the PCT to the colour bar.
  1007.  
  1008.  See Also: {..|..|}PCT Editing
  1009.  
  1010. 2    Custom Colour Selection
  1011. @index{PCT Range Editing!Custom Colour Selection}
  1012.  
  1013.  The custom selection displays two colour push buttons: one 
  1014.  for the first colour and the other the last colour. Pressing
  1015.  the colour push button will bring up a colour mixing panel.
  1016.  
  1017.  By using the colour mixing panel, the user can specify the
  1018.  first colour and the last colour for a customized colour bar.
  1019.  
  1020.  After the selection of the two endpoint colours, pressing
  1021.  the "Interpolate" push button will do a linear interpolation
  1022.  of colours from the first colour to the last colour.
  1023.  The result of the interpolation is displayed in the colour
  1024.  bar. 
  1025.  
  1026.  The two markers on the colour bar may be moved left or right,
  1027.  and then pressing the "Interpolate" push button again will 
  1028.  change the contents of the colour bar such that the colours
  1029.  within the colour bar are linearly interpolated between these 
  1030.  end points.
  1031.  
  1032. 2    Graph Display
  1033. @index{PCT Range Editing!Graph Display}
  1034.  
  1035.  The graph area displays the image information(histogram) of
  1036.  the Image Plane loaded to the screen when the panel is opened.
  1037.  
  1038.  There are two markers that allow the user to specify the
  1039.  range of grey levels in which to apply the selected colours.
  1040.  For convenience, two input textfields are also available to
  1041.  specify exactly where to place the markers.
  1042.  
  1043. 2    Setup and Preview PCT
  1044. @index{PCT Range Editing!Setup and Preview PCT}
  1045.  
  1046.  This section is used to map, stretch, or compress a range of
  1047.  colours. The system will automatically tell the user if the
  1048.  colours are being mapped, stretched or compressed.
  1049.  
  1050.  There is an option menu which allows the user to control 
  1051.  values that are outside the specified range of grey levels.
  1052.  If the option menu is set to black, then all values outside
  1053.  the specified range are set to black. Similarly if the option
  1054.  menu is set to White, then the outside ranges are set to white.
  1055.  The Ignore option will not alter existing values that are
  1056.  outside the range of the PCT.
  1057.  
  1058.  The "Compress", "Map" or "Stretch" push button is used to
  1059.  actually display the selected colour scale in the image window.
  1060.  Until this button is pressed, you will not actually see the 
  1061.  effects of changing the colour bar or histogram.
  1062.  
  1063. 1    LUT Editing
  1064. @keyword{LUT Editing Imagery Histogram}
  1065. @index{LUT Editing}
  1066.  
  1067.  The LUT Editing panel contains functions for modifying the in-memory 
  1068.  Lookup Tables and image planes according to a specified LUT.  The 
  1069.  LUT Editing panel can be launched by selecting "LUT" from 
  1070.  the "Edit" menu on the main ImageWorks window.
  1071.  
  1072.  The launched LUT Editing panel will contain small "postage stamp" sized
  1073.  LUT graphs. These graphs are output only and can not be edited directly.
  1074.  The number of graphs available will vary depending on the screen and
  1075.  font size of the system. This panel is meant to provide a quick overview 
  1076.  of the LUTs currently being applied to the image planes. 
  1077.  
  1078.  Each graph has two elements: an option menu and a drawn area showing
  1079.  the LUT. The option menu is used to tie the graph to a particular channel.
  1080.  By selecting "Channel X" (where X is a channel number), the graph will 
  1081.  show the LUT currently being applied to that channel. If the graph should
  1082.  be tied to a particular colour gun, choose "Red", "Green", or "Blue". The
  1083.  graph will then show the LUT for the image plane currently tied to that
  1084.  colour gun. Changing the gun mappings will cause these graphs to update
  1085.  appropriately.
  1086.  
  1087.  The LUT Graphs contain three different pieces of information. The
  1088.  black line is a representation of the current LUT. The grey
  1089.  histogram in the background is a histogram of the image data without
  1090.  the LUT applied and the coloured histogram in the foreground is the
  1091.  image data with the LUT applied. If the graph is tied to a colour
  1092.  gun, the foreground histogram is drawn in this colour. A graph that
  1093.  is tied to a specific channel has its foreground histogram drawn
  1094.  in dark grey.
  1095.  
  1096.  To actually edit an LUT, click any of the mouse buttons in the drawn LUT
  1097.  area. This will cause an LUT Editor to be launched that will allow
  1098.  the editing of that LUT. There can be more than one LUT Editor on screen
  1099.  simultaneously. Each graph can launch a different LUT Editor. 
  1100.  
  1101.  The editor size can be chosen with the radio buttons at the bottom of the
  1102.  LUT Editing panel. A large editor is useful for having finer control
  1103.  when editing the LUT. A small editor might be required if the size
  1104.  of the screen cannot accommodate the larger editor size. If there is 
  1105.  already an LUT editor on screen and another is requested of a different
  1106.  size, the old one is popped down and a new one reflecting the new size
  1107.  is displayed. 
  1108.  
  1109.  
  1110. 2    LUT Editor
  1111.  
  1112.  The LUT Editor is an interactive panel that allows the direct editing
  1113.  of an image plane's lookup table.
  1114.  
  1115.  It is composed of several areas. There is a section for controlling
  1116.  which histograms are shown in the drawing area as well as how the histogram
  1117.  is computed. The main editing area contains a large graphical representation
  1118.  of the LUT for interactive editing with the mouse. To the right of the main 
  1119.  editing area is a another LUT graph showing a backup LUT copy. Below this is 
  1120.  an area for applying a mathematical function to the LUT. Finally, there are
  1121.  textfields that can be used to enter LUT values directly. The panel
  1122.  features a button at the bottom of the panel which will apply the lookup
  1123.  table to the image plane, changing the image data permanently.
  1124.  
  1125.  
  1126. 3    Histogram Area
  1127. @index{LUT Editing!Histograms}
  1128.  
  1129.  There are two option menus in this area. The first one titled "Showing"
  1130.  is used to select which histograms are drawn in the main editing area.
  1131.  The second titled "Computed From" is used to select a mask which will
  1132.  be used to define an area of the image plane from which the histogram
  1133.  is computed.
  1134.  
  1135.  There are two histograms of interest: the original image data histogram 
  1136.  with no LUT applied and the new histogram with the LUT applied. Using
  1137.  the "Showing" option menu, it is possible to choose which of these histograms
  1138.  is drawn in the main editing area. This option does not apply to the
  1139.  LUT Editing panel with the "postage stamp" LUTs.
  1140.  
  1141.  Using the "Compute From" option menu, the user may select a mask from
  1142.  under which to compute the raw or (pre-LUT) histogram. Possible selections 
  1143.  include "All Data" for a histogram of the entire image plane, "Viewed Data" 
  1144.  for a histogram of the area currently showing in the main image window, or a 
  1145.  specific graphic plane for a histogram of the imagery underneath that graphic 
  1146.  plane.  The histograms shown in the LUT graphs are intended as an aid in
  1147.  setting function end points, and visualizing data distribution. 
  1148.  
  1149. 3    Editing Graph
  1150. @index{LUT Editing!Graph Editing}
  1151.  
  1152.  The graph contains three different pieces of information. The
  1153.  black line is a representation of the current LUT. The grey
  1154.  histogram in the background is a histogram of the image data without
  1155.  the LUT applied and the coloured histogram in the foreground is the
  1156.  image data with the LUT applied. If the graph is tied to a colour
  1157.  gun, the foreground histogram is drawn in this colour. A graph that
  1158.  is tied to a specific channel has its foreground histogram drawn
  1159.  in dark grey.
  1160.  
  1161.  The black line represents the values in the lookup table, with the left side
  1162.  of the graph representing an input value of 0, and the right side of
  1163.  the graph an input value of 255. The height of the white line above
  1164.  the bottom of the graph corresponds to the output value. At the
  1165.  bottom the output value is 0, while at the top the output value is
  1166.  255.
  1167.  
  1168. 3    Interactive Editing
  1169. @index{LUT Editing!Interactive Editing}
  1170.  
  1171.  There are three methods of interactively editing the LUTs (black lines) 
  1172.  directly in the LUT graph displays.
  1173.  
  1174.  The first is to click and drag the left mouse button in the graph area 
  1175.  to trace out a section of the LUT. When the left button is released the
  1176.  modified LUT will be applied to the imagery in the main image
  1177.  window. This technique is called direct tracing. While the mouse is moved 
  1178.  through the graph, the current position of the cursor is shown in the 
  1179.  title bar for the lookup table.
  1180.  
  1181.  The second method, piecewise interpolation, is performed by pressing
  1182.  the middle button at one point, and dragging out a straight line to
  1183.  a second point.
  1184.  
  1185.  The third technique allows the user to drag the entire LUT to the
  1186.  left or the right. This is done by pressing the right mouse button
  1187.  in the graph area, and dragging the whole graph left or right
  1188.  before releasing the mouse button. This can also be accomplished
  1189.  in single step increments using the "left arrow" and "right arrow" 
  1190.  buttons while the editing area has input focus. 
  1191.  
  1192.  On motif systems, the drawing area can usually be given input 
  1193.  focus by clicking the mouse in it. Alternately, the tab key can be 
  1194.  used to traverse the tab groups until the drawing area is selected. 
  1195.  Unfortunately, the drawing area will not be highlighted in any special 
  1196.  way when it is selected so the user may have to experiment with the arrow 
  1197.  keys until it is clear that the drawing area has input focus.
  1198.  
  1199.  Currently there is no provision for moving the whole LUT up or
  1200.  down. 
  1201.  
  1202. 3    Secondary LUT
  1203. @index{LUT Editing!Secondary LUT}
  1204.  
  1205.  To the right of the main editing area is another graph showing a backup
  1206.  copy of the LUT. When the LUT Editor panel is launched, a backup copy of 
  1207.  the LUT is saved. The "Copy" button will copy the current LUT being edited 
  1208.  over the saved LUT. The "Toggle" button will switch between the currently
  1209.  editing LUT and the saved one. These two buttons create a sort of "undo" 
  1210.  function as well as allowing easy comparison of two sets of LUTs via 
  1211.  the toggle. 
  1212.  
  1213. 3    Applying Functions
  1214. @index{LUT Editing!Applying Functions}
  1215.  
  1216.  The "Apply" button is used to apply a mathematical function as part
  1217.  of the LUT.  The function is applied within bounds defined
  1218.  by the markers along the bottom and sides of the main editing graph.
  1219.  
  1220.  The markers along the left side of the graph determine the minimum and 
  1221.  maximum output grey level values, while the markers along the bottom of 
  1222.  the graph determine the range of input data values within which the 
  1223.  function is applied. The markers can be moved by clicking on them
  1224.  and dragging them. The values can also be entered directly with
  1225.  textfields. 
  1226.  
  1227.  If the function name ends with "w/Tail", this means for regions
  1228.  outside of the minimum and maximum grey level values (i.e. horizontal
  1229.  markers), the tails will be set to the end point values. If the
  1230.  function names ends with "Piece", this means that only the 
  1231.  LUT values between the minimum and maximum grey level values will
  1232.  be affected. All other parts of the LUT will remain unchanged.
  1233.  
  1234. 3    Direct Entry
  1235. @index{LUT Editing!Direct Editing}
  1236.  
  1237.  The two textfields labelled "X:" and "LUT(X):" can be used to enter
  1238.  lookup table values directly for a particular input/output pair.
  1239.  These fields are also updated while the mouse is in the main editing graph.
  1240.  
  1241. 3    Permanent Apply LUT
  1242. @keyword{LUT Editing!LUT Encoding}
  1243.  
  1244.  The panel contains a "Permanent Apply LUT->Image" button. This button 
  1245.  allows the user to create a new image from the specified LUT. That is, 
  1246.  the result of the image data with the applied LUT is written to the image 
  1247.  plane. Once the "Permanent Apply LUT->Image" button is pressed, the 
  1248.  original data of the image plane is lost.
  1249.  
  1250. 1    Graphic Info
  1251. @keyword{Graphics Info Enable Colour Georeferencing}
  1252. @index{Graphics!Info}{Graphics!Enable}{Graphics!Colour}
  1253. @index{Graphics!Georeferencing}
  1254.  
  1255.  The Graphic Plane Info panel contains functions for viewing and 
  1256.  modifying descriptor, visibility, and colour information, as well
  1257.  as viewing the data source information. The Graphic Plane Info panel 
  1258.  can be launched by selecting the "Graphic Info" option from the 
  1259.  "View" pulldown menu in ImageWorks.
  1260.  
  1261.  The first section of the panel is the "Graphic Planes" list. This is
  1262.  the list of graphic planes in memory with their descriptors. One plane
  1263.  at a time may be selected from this list, to view and modify details
  1264.  in the "Selected Object" area of the panel.
  1265.  
  1266.  The graphic plane number or "Id" of the selected graphic plane is
  1267.  shown just below the "Selected Object" title bar. Below this are the
  1268.  "Visibility" and "Colour" selectors. The Visibility radio buttons are
  1269.  used to enable and disable the graphic plane. The "Colour" option
  1270.  menu is used to select a colour from a short list of named colours.
  1271.  To set graphic plane colours that are not in the list it is
  1272.  currently necessary to use the DCP PACE task.
  1273.  
  1274.  Following these selectors is an editable graphic plane descriptor. This
  1275.  descriptor is normally loaded from the source file, and may be saved
  1276.  to the destination file if the graphic plane is saved.
  1277.  
  1278.  Following this descriptor are the source file name, bitmap segment, and 
  1279.  subwindow if the contents of the graphic plane were loaded directly from a
  1280.  file. This information will be blank if the graphic plane was loaded
  1281.  using IVB, or created with graphic editing.
  1282.  
  1283.  The Georeferencing section displays georeferencing information of a
  1284.  selected graphic plane. This section is known as a GeoEdit control.  There 
  1285.  is an option menu that can be used to display different coordinate systems. 
  1286.  The georeferencing information of each graphic plane can be edited. 
  1287.  
  1288.  See Also: GeoEdit
  1289.  
  1290. 1    Graphic Editing
  1291. @keyword{Graphics Editing}
  1292. @index{Graphic Editing}
  1293.  
  1294.  The Graphic Editing panel contains functions for modifying graphic 
  1295.  planes. Tracing, creating shapes, flood filling areas and annotation 
  1296.  are available. It is also possible to set line styles, font styles, 
  1297.  and font sizes.
  1298.  
  1299.  The Graphic Editing panel can be invoked by selecting the "Graphic"
  1300.  option from the "Edit" pulldown menu in ImageWorks.
  1301.  
  1302.  The top area of the Graphic Editing panel contains a list of graphic
  1303.  planes available to draw in.  One of these is selected at all 
  1304.  times, and only the selected plane(s) will be affected by drawing actions.
  1305.  Selecting a graphic plane will enable it (make it visible) if it is 
  1306.  not already visible.
  1307.  
  1308.  The Operation area of the Graphic Editing panel contains a button
  1309.  for each major operation that can be done. At any one time only one
  1310.  of these buttons may be depressed, indicating the current operation
  1311.  mode. Descriptions of each of the operation modes follows in the
  1312.  subtopics Shapes, Lines, Cut, Copy, Paste, Flood Fill, and Annotation.
  1313.  
  1314.  The Style Modifiers area of the Graphic Editing panel contains
  1315.  additional modifiers for the graphic operation.
  1316.  
  1317.  The first option indicates whether the graphic operations should 
  1318.  result in the clearing or setting of areas of the graphic plane. 
  1319.  Clearing can be thought of as erasing.  When clear is off, you will
  1320.  be drawing into the graphic plane; when it is on, you will be erasing
  1321.  data in the graphic plane.  Remember that operations performed in a 
  1322.  graphic plane do not affect any image planes.  The Default is "off".
  1323.  If clear is off, the graphic plane's bits will be set to 1 by graphic 
  1324.  operations; if clear is on, the graphic plane's bits will be set to 0.
  1325.  
  1326.  The next option is the line width. All shapes and lines drawn are
  1327.  affected by the line width set here. This is even true of solid
  1328.  shapes.
  1329.  
  1330.  The last options are those dealing with the annotation font style
  1331.  and size. These are discussed in the Annotation subtopic. 
  1332.  
  1333. 2    Shapes
  1334. @keyword{Circle}{Box}
  1335. @index{Graphic Editing!Shapes}
  1336.  
  1337.  The Circle, Solid Circle, Box, and Solid Box operations are
  1338.  considered shape operations, and they all operate similarly.
  1339.  
  1340.  When one of the shape operations is active, it is possible to drag
  1341.  out a copy of the shape, seeing the outline as the drag takes place.
  1342.  When the drag is released, the shape is burned into the selected
  1343.  graphic plane.  The Escape key may be used to cancel an action 
  1344.  during a drag.
  1345.  
  1346.  Specifically, one depresses the left mouse button in the Main Image
  1347.  Window, drags the mouse while holding down the button, and releases
  1348.  when the shape has been dragged out to the desired size.
  1349.  
  1350.  
  1351. 2    Lines
  1352. @keyword{Trace}{Line}{Polyline}{Polygon}
  1353. @index{Graphic Editing!Lines}
  1354.  
  1355.  The Trace, Line, PolyLine, Polygon, and Trace&Close operations are
  1356.  all considered to be line operations, and they operate similarly.
  1357.  
  1358.  Each of the line operations creates one or more line segments which
  1359.  are affected by the line width option under Style Modifiers. In each
  1360.  case the line operations are controlled by depressing the left mouse
  1361.  button, dragging and releasing.  The Escape key may be used to cancel 
  1362.  an action during a drag.
  1363.  
  1364.  The Line operation creates a new disconnected line segment for each
  1365.  Drag sequence. The PolyLine operation creates a new line segment
  1366.  connected to the last for each Drag sequence. The Polygon operation
  1367.  acts the same as the PolyLine operation, but closes the polyline to 
  1368.  form a polygon when you terminate polygon mode.
  1369.  
  1370.  Trace mode creates a series of short line segments as the cursor is
  1371.  dragged around with the left mouse button depressed. Trace & Close
  1372.  mode is similar to Trace mode, except that it closes the traced
  1373.  polygon when the left mouse button is released. 
  1374.  
  1375. 2    Cut, Copy, and Paste
  1376. @keyword{Cut}{Copy}{Paste}
  1377. @index{Graphic Editing!Cut, Copy, and Paste}
  1378.  
  1379.  The Cut, Copy, and Paste functions allow the user to cut or copy 
  1380.  rectangles of a graphic plane to a hidden clipboard.  Later this
  1381.  stored rectangle may be pasted into another location in the same
  1382.  or a different graphic plane.  
  1383.  
  1384.  The Cut and Copy functions work identically with the exception that
  1385.  Cutting a block of graphics will blank out the selected rectangle,
  1386.  while Copying does not affect the selected area.  After Cut or Copy 
  1387.  mode has been selected on the Graphic Editing Panel, a rectangle is 
  1388.  dragged out with the left mouse button depressed and the cut/copy takes 
  1389.  place when the mouse button is released.  The Escape key may be used 
  1390.  to cancel an action during a drag.
  1391.  
  1392.  The Paste function writes the contents of the graphic clipboard to the
  1393.  currently specified graphic plane.  Note, however, that the pasted
  1394.  graphic is added without obliterating the existing graphics.  The 
  1395.  saved graphic is not destroyed any may be pasted multiple times.  
  1396.  After selecting Paste on the Graphic Editing Panel, the paste box may 
  1397.  be dragged around in the image window while the left mouse button is 
  1398.  depressed.  When the mouse button is released the saved graphic data 
  1399.  is added to the target region.  
  1400.  
  1401.  Note that the contents of the graphic clipboard are persistent when 
  1402.  the selected graphic plane is changed, so a region can be Cut or 
  1403.  Copied from one graphic plane and Pasted into another.
  1404.  
  1405.  The Clear mode buttons have no effect on the Cut, Copy, and Paste functions.
  1406.  
  1407. 2    Flood Fill
  1408. @keyword{Flood Fill}
  1409. @index{Graphic Editing!Flood Fill}
  1410.  
  1411.  The Flood Fill operation allows for the filling of outlined areas
  1412.  in a graphic plane.  The fill operation is triggered by a left or
  1413.  right mouse click in the main image window of ImageWorks.  The fill 
  1414.  operation is affected by the Clear mode buttons.
  1415.  
  1416.  The fill operation is bounded by any "eight connected" line. That is, the 
  1417.  fill operation will not expand diagonally (therefore the fill will not pass 
  1418.  through diagonal holes).
  1419.  
  1420.  The Trace & Close, and Polygon operations are specially designed to
  1421.  create areas guaranteed to contain fill operations. 
  1422.  
  1423.  The flood fill mode will be terminated after a left mouse click, but
  1424.  will persist after a right click.
  1425.  
  1426. 2    Annotate
  1427. @keyword{Annotation Graphics Annotate Text Fonts}
  1428. @index{Graphic Editing!Annotation}
  1429.  
  1430.  The Annotate operation is used to place text of a selected font, 
  1431.  style, and size at a desired location in a graphic plane.  Annotation 
  1432.  is affected by the Clear mode Style Modifier.  If the Clear mode is on, 
  1433.  the text will be burned out of the graphic plane.
  1434.  
  1435.  The fonts offered are loaded from Metafont `gf' files located in 
  1436.  /pci/etc, or (on X/Motif systems) from the X Server.  It is theoretically
  1437.  possible for the user to add Metafont `gf' files to the /pci/etc/fonts.lst
  1438.  file if they obtain additional gf fonts from other sources.
  1439.  
  1440.  On X/Motif systems it is possible to select one additional font by its name 
  1441.  in a user's X initialization file (i.e. .Xdefaults). The resource to be 
  1442.  set is `annotationFont'.  If the following line is placed in the 
  1443.  X initialization (i.e. .Xdefaults) file, the named system font 
  1444.  (in this case *screen-bold*-14-*) should appear on the list of fonts 
  1445.  available within the Graphic Editing panel of ImageWorks: 
  1446.  
  1447.   *annotationFont: *screen-bold*-14-*
  1448.  
  1449.  When the Annotate operation is active, and keyboard focus is in the
  1450.  main image window of ImageWorks, all keystrokes will be added to a
  1451.  string placed at the current cursor position. Either the backspace,
  1452.  or the delete key should delete the last character from the string.
  1453.  
  1454.  Dragging the image cursor with the left mouse button should result 
  1455.  in the string being dragged as well.  Dragging with the right 
  1456.  mouse button will rotate and scale the text, pivoting around a
  1457.  point half way along the text string.  
  1458.  
  1459.  The string is actually burned into, or out of, the graphic plane
  1460.  when the <Enter> key is hit, or annotation mode is exited.  Hitting
  1461.  enter will also result in the image cursor moving down by the height
  1462.  of a line of text.  This is to allow for the convenient entering of
  1463.  multiple lines of text.
  1464.  
  1465. 1    Image Info
  1466. @keyword{Imagery Info Data Type Colour Gun Mapping Georeferencing}
  1467. @keyword{Imagery!Info}{Imagery!Data Type}{Imagery!Colour Gun Mapping}
  1468. @keyword{Imagery!Georeferencing}
  1469.  
  1470.  The Image Plane Info panel contains functions for viewing
  1471.  descriptor and data source information, as well as modifying the
  1472.  image plane descriptor, data type, and main image window gun mapping. 
  1473.  The Image Plane Info panel can be launched by selecting the "Image Info" 
  1474.  option from the "View" pulldown menu in ImageWorks.
  1475.  
  1476.  The first section of the panel is the "Image Planes" list. This is
  1477.  the list of image planes in memory with their descriptors. One plane at
  1478.  a time may be selected from this list, to view and modify details in
  1479.  the "Selected Object" area of the panel.
  1480.  
  1481.  The image plane number or "Id" of the selected image plane is shown
  1482.  just below the "Selected Object Info" title bar.  Following this is an
  1483.  editable image plane descriptor. This descriptor is normally loaded
  1484.  from the source file, and may be saved to the destination file if
  1485.  the image plane is saved.
  1486.  
  1487.  Also in this area is a toggle switch to change the current image plane
  1488.  between storing data in 8 bit unsigned, 16 bit signed, and 32 bit floating 
  1489.  point form.  
  1490.  
  1491.  Beside the toggle switch are three push buttons representing whether
  1492.  the current image plane is currently mapped to the red, green, or blue
  1493.  colour guns in the Main Image Window.  It is possible to press these
  1494.  buttons to change the video gun mapping.  This is the primary method of
  1495.  viewing image planes beyond the up to sixteen image planes which appear
  1496.  on the Control Panel.
  1497.  
  1498.  Below the description string are fields for viewing or entering the
  1499.  minimum and maximum values used to scale 16 bit and 32 bit image planes
  1500.  to 8 bit values when displaying, or converting to 8 bit.  These text fields
  1501.  are only enabled for 16 bit and 32 bit data.  Normally a reasonable minimum
  1502.  and maximum are computed for scaling each time the general enhancements
  1503.  are computed.  However, these values can be overridden to control the
  1504.  way scaling takes place.
  1505.  
  1506.  Following this is the source file name, channel number, and subwindow
  1507.  if the contents of the image plane were loaded directly from a
  1508.  file. This information will be blank if the image plane was loaded
  1509.  using IVI, or created by image editing.
  1510.  
  1511.  The Georeferencing section displays georeferencing information of a
  1512.  selected image plane. This section is known as a GeoEdit control.  There 
  1513.  is an option menu that can be used to display different coordinate systems. 
  1514.  The georeferencing information of each image plane can be edited. 
  1515.  
  1516.  See Also: GeoEdit
  1517.  
  1518. 1    Image Editing
  1519. @keyword{Imagery Editing}
  1520. @index{Image Editing}
  1521.  
  1522.  The Image Editing panel contains functions for modifying the
  1523.  visible image planes. Therefore, you should use the Control Panel to
  1524.  specify which image planes you wish to affect.  
  1525.  
  1526.  Tracing, creating shapes, and annotation are available. It is also 
  1527.  possible to set line styles, font styles, and font size.
  1528.  
  1529.  The Image Editing panel can be launched by selecting the "Image"
  1530.  option from the "Edit" pulldown menu in ImageWorks.
  1531.  
  1532.  The Operation area of the Image Editing panel contains a button for
  1533.  each major operation that can be done. At any one time only one of
  1534.  these buttons may be depressed, indicating the current operation
  1535.  mode. Descriptions of each of the operation modes follows in the
  1536.  subtopics Shapes, Lines, Cut, Copy, Paste, and Annotation.
  1537.  
  1538.  The Style Modifiers area of the Image Editing panel contains
  1539.  additional modifiers for the image operation.
  1540.  
  1541.  The first option is the colour to be written by an image drawing
  1542.  operation. The default is white, or a value of 255 in each of the
  1543.  affected planes.  Any other value may be mixed using the colour
  1544.  mixing controls.
  1545.  
  1546.  The next option is the line width. All shapes and lines drawn are
  1547.  affected by the line width set here. This is even true of solid
  1548.  shapes.
  1549.  
  1550.  The last options are those dealing with the annotation font style
  1551.  and size. These are discussed in the Annotation subtopic. 
  1552.  
  1553. 2    Shapes
  1554. @keyword{Box}{Circle}
  1555. @index{Image Editing!Shapes}
  1556.  
  1557.  The Circle, Solid Circle, Box and Solid Box operations are
  1558.  considered shape operations, and they all operate similarly.
  1559.  
  1560.  When one of the shape operations is active, it is possible to drag
  1561.  out a copy of the shape, seeing the outline as the drag takes place.
  1562.  When the drag is released, the shape is burned into the selected
  1563.  image planes.  The Escape key may be used to cancel an action during 
  1564.  a drag.
  1565.  
  1566.  Specifically, one depresses the left mouse button in the Main Image
  1567.  Window, drags the mouse while holding down the button, and releases
  1568.  when the shape has been dragged out to the desired size. 
  1569.  
  1570. 2    Lines
  1571. @keyword{Trace}{Line}{Polyline}{Polygon}
  1572. @index{Image Editing!Lines}
  1573.  
  1574.  The Trace, Line, PolyLine, Polygon, and Trace&Close operations are
  1575.  all considered to be line operations, and they operate similarly.
  1576.  
  1577.  Each of the line operations creates one or more line segments which
  1578.  are affected by the line width option under Style Modifiers. In each
  1579.  case the line operations are controlled by depressing the left mouse
  1580.  button, dragging and releasing.  The Escape key may be used to cancel 
  1581.  an action during a drag.
  1582.  
  1583.  The Line operation creates a new disconnected line segment for each
  1584.  Drag sequence.  The PolyLine operation creates a new line segment
  1585.  connected to the last for each Drag sequence. The Polygon operation
  1586.  acts the same as the PolyLine operation, but closes the polyline to 
  1587.  form a polygon when polygon mode is terminated.
  1588.  
  1589.  Trace mode creates a series of short line segments as the cursor is
  1590.  dragged around with the left mouse button depressed. Trace & Close
  1591.  mode is similar to Trace mode, except that it closes the traced
  1592.  polygon when the left mouse button is released. 
  1593.  
  1594. 2    Cut, Copy and Paste
  1595. @keyword{Cut}{Copy}{Paste}
  1596. @index{Image Editing!Cut, Copy, and Paste}
  1597.  
  1598.  The Cut, Copy and Paste functions allow the user to cut or copy 
  1599.  rectangles of the viewed image planes to a hidden clipboard.  Later this
  1600.  stored rectangle may be pasted into another location in the same
  1601.  or different image planes.
  1602.  
  1603.  The Cut and Copy functions work identically with the exception that
  1604.  Cutting a block of imagery will blank out (set to zero) the selected 
  1605.  rectangle,  while Copying does not affect the selected area.  After 
  1606.  selecting Cut or Copy mode on the Image Editing Panel a rectangle is 
  1607.  dragged out with the left mouse button depressed and the cut/copy takes 
  1608.  place when the mouse button is released. The Escape key may be used 
  1609.  to cancel an action during a drag.
  1610.  
  1611.  The Paste function overwrites a region of imagery with the contents 
  1612.  of the image clipboard.  The saved imagery is not destroyed
  1613.  and may be pasted multiple times.  After Paste on the Image Editing 
  1614.  Panel has been selected, the paste box may be dragged around in the
  1615.  image window while the left mouse button is depressed.  When the
  1616.  mouse button is released the saved imagery data is added to the 
  1617.  target region.  
  1618.  
  1619.  Note that the contents of the imagery clipboard are persistent when the
  1620.  viewed image plane(s) are changed, so a region can be Cut or Copied from
  1621.  one image plane and Pasted into another.  The Cut and Copy functions will
  1622.  grab one or three image planes worth of unenhanced image data
  1623.  when the Cut or Copy takes place.  The enhancement and/or PCT of the
  1624.  image window are not associated with the data in the clipboard.
  1625.  
  1626.  The Clear mode buttons have no effect on the Cut, Copy, and Paste functions.
  1627.  
  1628. 2    Annotate
  1629. @keyword{Annotation Imagery Annotate Text Fonts}
  1630. @index{Image Editing!Annotation}
  1631.  
  1632.  The Annotate operation is used to place text of a selected font
  1633.  style and size at a desired location in the selected image planes.
  1634.  
  1635.  The fonts offered are loaded from Metafont `gf' files located in 
  1636.  /pci/etc, or (on X/Motif systems) from the X Server.  It is theoretically
  1637.  possible for the user to add Metafont `gf' files to the /pci/etc/fonts.lst
  1638.  file if they obtain additional gf fonts from other sources.
  1639.  
  1640.  On X/Motif systems it is possible to select one additional font by its name 
  1641.  in a user's X initialization file (i.e. .Xdefaults). The resource to be 
  1642.  set is `annotationFont'.  If the following line is placed in the 
  1643.  X initialization (i.e. .Xdefaults) file, the named system font 
  1644.  (in this case *screen-bold*-14-*) should appear on the list of fonts 
  1645.  available within the Graphic Editing panel of ImageWorks: 
  1646.  
  1647.   *annotationFont: *screen-bold*-14-*
  1648.  
  1649.  When the Annotate operation is active, and keyboard focus is in the
  1650.  main image window of ImageWorks, all keystrokes will be added to a
  1651.  string placed at the current cursor position. Either the backspace
  1652.  or the delete key should delete the last character from the string.
  1653.  
  1654.  Dragging the image cursor with the left mouse button should result 
  1655.  in the string being dragged as well.  Dragging with the right 
  1656.  mouse button will rotate and scale the text, pivoting around a
  1657.  point half way along the text string.  
  1658.  
  1659.  The string is actually burned into the image plane(s) when the
  1660.  <Enter> key is hit, or annotation mode is exited. Hitting enter will
  1661.  also result in the image cursor moving down by the height of a line
  1662.  of text. This is to allow for the convenient entering of multiple
  1663.  lines of text.
  1664.  
  1665. 1    DEM Editing
  1666. @keyword{DEM Editing Imagery Elevation}
  1667. @index{DEM Editing}{Imagery!Editing}{Elevation!Editing}
  1668.  
  1669.  The DEM (Digital Elevation Model) Editing panel contains functions for 
  1670.  modifying DEM data.  The editing functions are especially useful in cleaning
  1671.  up elevation models which have been automatically extracted from satellite or
  1672.  airphoto stereo pairs (for example, from the EASI/PACE programs SDEM and 
  1673.  ADEM).  Usually DEM data is 16-bit signed integer data which has been read 
  1674.  into a 32-bit real channel in ImageWorks.
  1675.  
  1676.  A set of graphical editing tools is provided, enabling the user to perform
  1677.  the following functions:
  1678.  
  1679.  - creating editing masks
  1680.  - interpolating elevations to cover areas with no elevation information
  1681.  - filtering out 'noisy' elevation points
  1682.  - smoothing out irregularities to create a more pleasing elevation model
  1683.  - 'bulldozing' areas/lines of data to a particular elevation
  1684.  - setting areas (such as lakes) to constant values
  1685.  
  1686.  The DEM Editing panel can be invoked by selecting the "DEM..." option from
  1687.  the "Edit" pulldown menu in ImageWorks.
  1688.  
  1689.  The DEM Editing panel has five sections each of which is described below.
  1690.  
  1691. 2    Information
  1692. @index{DEM Editing!Information}
  1693.  
  1694.  The section contains general information that controls the editing and
  1695.  display process.
  1696.  
  1697.  The "Elevation Channel" selector allows the selection of the channel on
  1698.  which to operate.  All operations will be applied to the channel shown. 
  1699.  To select a different channel, click on the current channel, then select
  1700.  the new channel from the ones presented.  The default channel is the one 
  1701.  that is being shown or the previous channel edited.
  1702.  
  1703.  The "RE-Enhance" button allows one to re-enhance the current LUT 
  1704.  while viewing 
  1705.  the DEM.  This is best used in conjunction with zooming in, which enables 
  1706.  the user to distinguish elevations easily.  This button is especially useful
  1707.  if the data being edited is in a 32-bit real channel.
  1708.  
  1709.  The "Failed" and "Background" labels identify input fields that allow the
  1710.  user to specify the failed and background values associated with the DEM.
  1711.  Areas where elevation should exist, but for some reason is missing, 
  1712.  are indicated by using the 'Failed' value.  Areas outside the DEM area where 
  1713.  no elevation data is meant to exist are indicated by the 'Background' value.
  1714.  
  1715.  Note:  many of the functions in the DEM editing panel will not be 
  1716.  accessible unless a failed and background value are entered.
  1717.  
  1718.  The "Elevation at cursor" field prints out the elevation at the current
  1719.  cursor position.  This is supplied for user convenience.  To see a window
  1720.  of values, the "Numeric Window ..." option from the "Edit" pulldown menu
  1721.  should be used.
  1722.  
  1723. 2    Mask Operations
  1724. @index{DEM Editing!Mask Operations}
  1725.  
  1726.  This section contains various editing tools which allow the user to create 
  1727.  an area of interest mask which can be used to control various fill, filtering,
  1728.  and interpolation functions.  
  1729.  
  1730.  This mask is independent of any other graphics planes within ImageWorks and 
  1731.  may only be edited within the DEM Editing panel.
  1732.  
  1733.  The "Show Mask" toggle button will either enable or disable the display of 
  1734.  the graphic mask.  While the graphic mask is not visible, the Mask Editing 
  1735.  operation buttons such as Trace, Polygon, and Fill will be insensitive.  
  1736.  
  1737.  Note: only the visibility of the graphic mask is controlled by the Show Mask 
  1738.  toggle; any operations which use the graphic mask will still work correctly 
  1739.  even though the mask itself is not visible.  
  1740.  
  1741.  To select a new mask colour, click on the current colour, then select the 
  1742.  new colour from the menu presented. 
  1743.  
  1744.  The "Clear Mask" button will clear the entire graphic mask.
  1745.  
  1746.  The "Trace", "Trace&Close", "PolyLine", and "Polygon" buttons allow an
  1747.  area to be outlined, later to be filled.  These operations are activated by
  1748.  selecting the button and then using the left mouse button to move the
  1749.  cursor over the DEM, outlining an area of interest.  While these operations
  1750.  are active the button will appear depressed.
  1751.  
  1752.  The "PolyLine" operation creates a new line segment connected to the last, 
  1753.  for each Drag sequence. The "Polygon" operation acts the same as the 
  1754.  "PolyLine" operation, but closes the polyline to form a polygon when you 
  1755.  terminate polygon mode.  
  1756.  
  1757.  "Trace" mode creates a series of short line segments as the cursor is dragged
  1758.  around with the left mouse button depressed. "Trace&Close" mode is similar 
  1759.  to Trace mode, except that it closes the traced polygon when the left mouse 
  1760.  button is released.
  1761.  
  1762.  The "Fill@Cursor" button is used to flood fill an outlined area on the
  1763.  mask.  Select this function then move the cursor to the area and click the
  1764.  left mouse button to initiate the fill.  This function is deactivated
  1765.  after each left mouse button click; if the right mouse button is used the
  1766.  function remains active and another area can be filled.  
  1767.  
  1768.  Note:  ensure the areas to be filled are CLOSED polygons before filling
  1769.  them; otherwise, the filling will leak out and fill the entire image. 
  1770.  The "Trace&Close", and "Polygon" operations are specifically designed to
  1771.  create areas guaranteed to contain fill operations.
  1772.  
  1773.  The "Fill Failed@Cursor" button is used to flood fill an area of failed
  1774.  values.  Activate this function, then move the cursor to a part of the DEM
  1775.  with failed values.  Click the left mouse button to initiate the fill.
  1776.  This function is deactivated after each left mouse button click; if the 
  1777.  right mouse button is used the function remains active and another area 
  1778.  can be filled.
  1779.  
  1780.  The "Fill all Failed" button is used to flood fill ALL of the areas with
  1781.  failed values in the entire DEM.
  1782.  
  1783. 2    Area Fills Under Mask
  1784. @index{DEM Editing!Area Fills Under Mask}
  1785.  
  1786.  The buttons in this section initiate fill operations under the mask.
  1787.  
  1788.  "Fill Using Value" sets all pixels (DEM values) under the mask to the
  1789.  value specified by the user in the "Value" text field.  
  1790.  
  1791.  For example, using the Mask Operations the user traces and fills a mask over
  1792.  a lake.  The elevation of the lake is read off a map and entered into the
  1793.  "Value" text field.  The "Fill Using Value" button is then used to set
  1794.  all the DEM values for the lake to the known lake elevation.
  1795.  
  1796.  "Fill Using Average" is similar to the "Fill Using Value" operation 
  1797.  except that all the pixels (DEM values) under the mask are set to the 
  1798.  average value of the elevations under the mask.  The current average value 
  1799.  is shown to the right of this button.
  1800.  
  1801.  For example, the user knows that a particular residential area is basically
  1802.  flat; however, the DEM has many bumps due to buildings etc...  The user
  1803.  masks the residential area, then uses the average elevation for the area
  1804.  as the new elevation.  This removes the bumps.
  1805.  
  1806.  "Fill Each Polygon with Polygon Average" is similar to the "Fill Using
  1807.  Average" function; however, each individual polygon in the mask is identified
  1808.  and its average is calculated independently and used to fill the polygon.
  1809.  If there is only one polygon in the mask, this is equivalent to the
  1810.  "Fill Using Average" function.
  1811.  
  1812. 2    Bulldoze a Line
  1813. @index{DEM Editing!Line Bulldozing}
  1814.  
  1815.  This operation creates a series of short line segments as the cursor is
  1816.  dragged around with the left mouse button depressed.  The imagery under the
  1817.  work mask will be changed to the value specified in the "Value" field.
  1818.  
  1819.  The "Line Width" buttons allow the user to select the width of the line
  1820.  (in pixels).  The width only applies to the "Bulldoze" function, not the
  1821.  operations within the "Mask" section.
  1822.  
  1823.  The user may enter a value in the "Value" text field to be used in the 
  1824.  "Bulldoze Using Value" operations.  Any 32-bit floating point value may
  1825.  be entered.
  1826.  
  1827. 2    Filtering and Interpolation
  1828. @index{DEM Editing!Filtering and Interpolation}
  1829.  
  1830.  This section contains three functions to clean up a DEM.  All three 
  1831.  functions may be applied to the entire DEM ("Entire DEM" button), or just
  1832.  the DEM under a mask ("Under Mask" button).
  1833.  
  1834.  All  functions require the user to define a "Failed" value.  In
  1835.  addition, if the current graphic mask is clear (empty), the "Under Mask" 
  1836.  buttons will not work.
  1837.  
  1838.  The "Remove Noise" function is used to discard any artifacts which may be 
  1839.  in the DEM.  This function is made up of two separate filters.  The first
  1840.  filter calculates the average and variance of the eight elevation values 
  1841.  directly surrounding each pixel (excluding failed and background pixels).
  1842.  If the center pixel is more than two standard deviations away from the 
  1843.  average, it is replaced with the failed value.  This filter tends to remove 
  1844.  small areas of "noisy" pixels. The second filter counts up the number of 
  1845.  failed values directly surrounding each pixel.  If there are five or more 
  1846.  failed pixels then the center pixel is set to a failed value.  This tends 
  1847.  to 'grow' failed areas on the rational that the pixels adjacent to failed 
  1848.  areas tend to have a high probability of being noise (errors).
  1849.  
  1850.  Note:  these two filters were chosen on the basis of experience and 
  1851.  experimentation.  There is no strict  mathematical or algorithmic rational
  1852.  for their selection.  It is possible that they will remove some good values
  1853.  as well as bad values.
  1854.  
  1855.  The "Interpolate" function replaces failed values with elevation values,
  1856.  interpolated from the good elevation values from the edges of the failed 
  1857.  area.  The interpolation algorithm used was selected for its speed and
  1858.  simplicity rather than the quality of its results.  It should be adequate
  1859.  for small areas (areas of 200 or less pixels) but should not be used 
  1860.  for large failed areas.  The algorithm linearly interpolates elevations 
  1861.  between two good values using rows and columns, and then generates a single 
  1862.  value for a pixel based on the row and column values, weighted by their 
  1863.  distance from the failed area edges.
  1864.  
  1865.  The "Smooth" function uses a 3 by 3 Gaussian smoothing filter.   Pixels 
  1866.  having Failed or Background values will not be altered and will not be used
  1867.  in smoothing calculations.  Smoothing can be applied multiple times, having
  1868.  a cumulative effect.
  1869.  
  1870.  The "Remove Noise", "Interpolate", and "Smooth" filters were designed to
  1871.  be used iteratively.  For example:  the user selects the "Remove Noise"
  1872.  function twice, then the "Interpolate" function once, and the "Smooth"
  1873.  function three times.
  1874.  
  1875. 2    DEM Editing Hints
  1876. @index{DEM Editing!Hints}
  1877.  
  1878.  Every DEM is special and requires some thought and creativity in performing
  1879.  editing; there are few fixed rules.  The DEM editing panel and other
  1880.  ImageWorks functions can be used together to get the desired results.
  1881.  
  1882.  The following example shows how an editing function could be performed on
  1883.  the DEM extracted from a SPOT satellite stereo pair using the 
  1884.  EASI/PACE SDEM program in the Satellite Ortho and DEM Package.
  1885.  
  1886.  The user opens an ImageWorks session with one 8-bit channel and one 32-bit
  1887.  real channel, and loads the satellite image into channel 1 and the DEM
  1888.  into channel 2 (the 32-bit real channel).  The PCT editing panel is 
  1889.  opened to select the "Stepped" pseudocolour table since this better shows
  1890.  elevation data.
  1891.  
  1892.  The DEM editing panel is opened and the user selects channel 2 as the
  1893.  DEM to edit.  Note:  the DEM editing panel fills in the Failed and 
  1894.  Background values automatically from the channel descriptor that SDEM made.
  1895.  In this case the failed value is -10 and the background -20.
  1896.  
  1897.  The user notes that there are a number of urban areas which were extracted
  1898.  poorly; not only are there failed values, but there are a lot of bad/noisy 
  1899.  values.  
  1900.  The user masks these areas and sets the entire area to the failed value
  1901.  using the "Fill using Value" function, then interpolates these areas using
  1902.  the Interpolate "Under Mask" option.  Then the user clears the mask.
  1903.  
  1904.  The user also notes a large area which failed to interpolate due to cloud
  1905.  coverage in a mountainous area.  Since the area is so large and the relief 
  1906.  so complex, interpolating this area would be impossible.  So the user decides 
  1907.  it should just be ignored.  The user masks out this area and sets it to
  1908.  the Background value using the "Fill using Value" function.  
  1909.  
  1910.  The user notes that the numerous lakes in the area are not flat, and in some
  1911.  cases are full of bad values and failures (typically since lakes themselves
  1912.  have no features for the automatic DEM extraction to match on).  For now
  1913.  the user ignores the lake areas since this will be fixed at a later stage.
  1914.  
  1915.  At this point the user selects the "Remove Noise" function for the entire
  1916.  DEM and uses it twice, followed by the "Interpolate" for the the "Entire DEM"
  1917.  (which interpolates all the failed values so none are left) and the 
  1918.  "Smoothing" function twice.  This creates a good DEM except for lake areas.
  1919.  
  1920.  Examining the corresponding SPOT image (which was originally loaded into 
  1921.  channel 1) the user notes that lakes in a SPOT image have very low grey 
  1922.  levels, typically 10 or less.  Using the "Modelling..." tool the user 
  1923.  enters the following equation:
  1924.  
  1925.                if (%1 <= 10) %2 = -10
  1926.  
  1927.  In other words, if a pixel in channel 1 has a grey level of 10 or less, make
  1928.  the corresponding pixel in channel 2 (the DEM) -10, or the failed value.
  1929.  
  1930.  All the lakes have now been set to failed values in the DEM, removing the
  1931.  original DEM values and interpolated values.  The user now locates a large
  1932.  lake and creates a mask for the lake using the "Fill Failed@Cursor" button.
  1933.  Looking up the elevation for the lake, the user enters this value for the 
  1934.  "Fill Using
  1935.  Value" function, which sets the entire lake to a nice flat surface at the
  1936.  correct elevation.  The mask is then cleared using the "Clear Mask" function
  1937.  and the next large lake selected.
  1938.  
  1939.  Finally the user notes the dozens (hundreds) of little lakes left over, still
  1940.  identified by failed values.  Lacking the time to locate and fill each little
  1941.  lake, the user opts for the following method:  the "Fill all Failed" button
  1942.  is used to create a mask covering all the remaining lakes; the Interpolate
  1943.  "Using Mask" option is then used interpolate values for the failed values in
  1944.  the lakes by using the shore of the lake; then the "Fill Each Polygon with 
  1945.  Polygon Average" button is used.  This last step identifies each lake as a 
  1946.  polygon and uses the average elevation for the lake as the elevation for each
  1947.  pixel in the lake (this makes it flat and approximately at the correct 
  1948.  elevation).
  1949.  
  1950. 1    Vector Info
  1951. @keyword{Vectors Info Georeferencing Enable Colour}
  1952. @index{Vectors!Info}{Vectors!Georeferencing}{Vectors!Enable}
  1953. @index{Vectors!Colour}
  1954.  
  1955.  The Vector Info panel provides an interface for viewing and 
  1956.  modifying a vector layer's descriptor and visibility, as well as
  1957.  for viewing the data source information. The Vector Info panel
  1958.  can be launched by selecting the "Vector Info" option from the 
  1959.  "View" pulldown menu in ImageWorks.
  1960.  
  1961.  The first section of the panel is the "Vector Layers" list. This
  1962.  list shows the currently loaded layers (in memory) with their
  1963.  corresponding descriptors.  One layer at a time may be selected
  1964.  from this list to view and modify its details.
  1965.  
  1966.  Below the list of layers are the "Visibility" toggle buttons
  1967.  which enable and disable the graphic plane.  Under the "Visibility"
  1968.  buttons are the "WYSIWYG" ("What You See Is What You Get") toggle
  1969.  buttons which control how the vectors are displayed.  If "Yes" is
  1970.  selected, then the representation style tables are applied to the
  1971.  vectors.  If "No" is selected, the vectors are displayed as simple
  1972.  lines.
  1973.  
  1974.  Following this is an editable vector layer descriptor. This
  1975.  descriptor is normally loaded from the source file, and may be saved
  1976.  to the destination file by saving the vector layer.
  1977.  
  1978.  Under the editable descriptor is the total number of shapes in the
  1979.  selected vector layer.
  1980.  
  1981.  The next section of the panel is the "Source Information" which
  1982.  shows the source file name and the vector segment number.  This
  1983.  information will be blank if the graphic plane was created with the
  1984.  vector editing panel.
  1985.  
  1986.  The last section is the "Georeferencing Information" which displays
  1987.  georeferencing information for the selected vector layer in a control
  1988.  known as a GeoEdit.  The option menu can be used to select different
  1989.  coordinate systems and the georeferencing information can be edited.
  1990.  Changes to the georeferencing information can be saved by saving the
  1991.  vector layer.
  1992.  
  1993.  See Also: GeoEdit
  1994.  
  1995. 1    Vector Editing
  1996. @keyword{vectors shapes vertex vertices create delete editor editing}
  1997. @keyword{measurement distance length area}
  1998. @index{Vector Editing} {Vector!Editor} {Editing!Vectors}
  1999.  
  2000.  Interactive vector editing can be done through the Vector Editor
  2001.  panel.  This panel contains functions for modifying vector layer
  2002.  contents, deleting a layer, and creating a new layer.  The
  2003.  Vector Editor can be invoked by selecting the "Vector" option from
  2004.  the "Edit" pulldown menu in ImageWorks.
  2005.  
  2006.  A new vector layer is created whenever a vector segment is loaded
  2007.  from a file or when the "New Layer" button is selected in the
  2008.  "Operation" section of the Vector Editor.
  2009.  
  2010.  A list of the currently loaded vector layers appears at the top of
  2011.  the Vector Editor, with the currently selected layer shown
  2012.  highlighted.  Editing operations
  2013.  can take place on only one layer at a time.  If a layer is not
  2014.  visible in the graphic plane (image window) it is automatically made
  2015.  visible upon selection.
  2016.  
  2017.  The "Operation" section of the Vector Editor contains all of
  2018.  the vector editing operations which can be performed on the layer.
  2019.  An operation button is disabled if the operation is not valid or
  2020.  cannot be performed for the current layer or shape.  If an operation
  2021.  is taking place, that operation's button is pressed in.  Selecting
  2022.  the depressed button will end or cancel the operation.
  2023.  
  2024.  A vector layer contains shapes which are also referred to as vectors.
  2025.  Each shape in the layer has a unique shape id number and can have zero
  2026.  or more vertices.  If a shape has no vertices, it is not visible in
  2027.  the graphic plane.  A shape with only one vertex is a point and is
  2028.  represented in the graphic plane by small crosshairs
  2029.  which intersect at the location of the point.
  2030.  A shape with more than one vertex is represented by a polyline.
  2031.  
  2032.  The "Current Shape" section of the Vector Editor shows
  2033.  information about the currently selected shape.  The information in
  2034.  this section of the panel is filled in only if there is a single
  2035.  current shape.
  2036.  
  2037.  If there is a single current shape, the "Shape ID" text field displays
  2038.  its id number.  For the current shape, there may also be a currently
  2039.  selected vertex which is shown in the "Vertex ID" text field.  The
  2040.  total number of vertices in the current shape is displayed beside the
  2041.  current vertex id.
  2042.  
  2043.  The "Position" section of the Vector Editor shows the current
  2044.  vertex's x, y, and z coordinates in the layer's georeferenced units.
  2045.  The vertex position can be modified by making changes in the X, Y,
  2046.  and Z text fields.  If the shape has no vertices, then these text
  2047.  fields are blank.
  2048.  
  2049.  Next to the ``Position'' section are the area and length of the shape,
  2050.  also provided in the layer's georeferenced units.  If the shape is not closed,
  2051.  the area is blank.  A shape is considered closed if its first vertex
  2052.  and last vertex have the same position coordinates.  The area may not
  2053.  be accurate for a complex closed shape such as one with crossing edges.
  2054.  If the current shape has no vertices, then the length is also blank.
  2055.  
  2056.  Below the length is the attribute field section of the panel.  A
  2057.  vector layer may have any number of attribute fields associated with
  2058.  it.  The shapes in the layer inherit these attributes and may have
  2059.  their own values for each attribute field.  An attribute field can
  2060.  store information of the following data types: integers, floats, doubles,
  2061.  strings, and integer lists.
  2062.  
  2063.  The option menu contains a list of all attribute fields in the layer.
  2064.  From this option menu, one attribute field may be selected for display.
  2065.  The text field below it shows the value of the field for the current
  2066.  shape.  This value can be modified in the text field.  If there is more
  2067.  than one shape selected in the layer, this text field can be modified
  2068.  and the changes will apply to all of the selected shapes.  A confirmation
  2069.  is always requested before any changes are actually made.
  2070.  
  2071.  The "Attributes..." button at the bottom of the panel launches the
  2072.  Attribute Editor.  The "Style..." button launches the Vector Style
  2073.  Editor.  The "Query..." button launches the Attribute Query panel.
  2074.  
  2075.  See Also: Vector Info    
  2076.  
  2077. 2    Selecting Shapes and Vertices
  2078. @keyword{vectors shapes vertex vertices selecting selection}
  2079. @index{Vector Editing!Selecting Shapes and Vertices}
  2080. @index{Selection!of shapes and vertices for editing}
  2081. @index{Vector!Selection for editing}
  2082.  
  2083.  When the Vector Editor is active and none of the operation
  2084.  buttons are depressed, the main image window is in selection mode.
  2085.  The current shapes are highlighted in the image window.  The current
  2086.  vertex is indicated with a small box drawn around the vertex.
  2087.  
  2088.  There can be more than one current shape at one time.  If there is
  2089.  more than one current shape, there cannot be a current vertex.  A
  2090.  vertex can only become current when there is only one current shape,
  2091.  and there can only be one current vertex at a time.
  2092.  
  2093.  Shapes can be selected in several ways: by pressing the up or down
  2094.  arrow buttons of the "Shape ID" text field, by entering a shape id
  2095.  in the "Shape ID" text field, by using the "Select" operation, or by
  2096.  making selections in the image window using the mouse.
  2097.  
  2098.  The first two methods of selecting a shape are quite simple and need
  2099.  no explanation.  For an explanation on how to use the "Select"
  2100.  operation, see the "Vector Editor - Operations" help.
  2101.  
  2102.  When making shape selections within the image window, the mouse cursor
  2103.  must be in the image window.  As the mouse is moved around in the
  2104.  image window with the left mouse button depressed, the current shape
  2105.  and current vertex are updated to reflect the current selection(s).
  2106.  The shape and vertex closest to the cursor are the current shape and
  2107.  vertex selections.  The selection operation is complete when the mouse
  2108.  button is released,
  2109.  
  2110.  Holding down the <SHIFT> key while selecting shapes in the image
  2111.  window adds to or removes from the existing set of current shapes.
  2112.  If the shape is already highlighted, reselecting it with the mouse
  2113.  while holding down the <SHIFT> key will remove it from the set of
  2114.  current shapes.  If the shape is not highlighted, selecting it
  2115.  with the mouse while holding down the <SHIFT> key will add it to
  2116.  the set of current shapes.
  2117.  
  2118.  When a single shape is being selected using the mouse in the image
  2119.  window, the vertex is selected simultaneously.  The vertex closest
  2120.  to the cursor becomes the selected vertex.
  2121.  
  2122.  If a shape is selected using the text field methods, then the first
  2123.  vertex in the shape is automatically selected as the current vertex,
  2124.  unless the shape has no vertices.  The current vertex can be changed
  2125.  by pressing the arrow buttons on the vertex id text field or by
  2126.  entering the new current vertex in the vertex id text field.  There
  2127.  cannot be a current vertex without a current shape.
  2128.  
  2129. 2    Vector Editing Operations
  2130. @keyword{vectors operations create delete modify modification}
  2131. @index{Vector Editing!Operations}
  2132.  
  2133.  Most of the vector editing operations require a pre-selected current
  2134.  shape and a current vertex, or a pre-selected set of current shapes.
  2135.  
  2136.  If an operation is not permitted for the current layer or the current
  2137.  shape, the button for that operation is disabled.  If the currently
  2138.  selected layer is not visible, then all of the vector editing buttons
  2139.  will be disabled, except for the "New Layer" button, because vectors
  2140.  cannot be edited unless they are visible.
  2141.  
  2142.  Some vector editing operations can be performed on more than one current
  2143.  shape, such as Copy, Delete Shape(s) and Move.  If the number of
  2144.  current shapes is larger than the value set by the ShapeSaveLimit
  2145.  preference (defaulted at 100), the changes made by these operations
  2146.  are not saved in the undo/redo buffer, so they cannot be undone nor
  2147.  redone.  In such cases, the undo/redo buffer is also cleared, so past
  2148.  changes also cannot be undone nor redone.  However, before any of this
  2149.  happens, the user is always prompted to continue with the operation,
  2150.  so he or she may cancel the operation and the undo/redo buffer will
  2151.  not be affected.
  2152.  
  2153.  In the following descriptions, "clicking" a mouse button means "depress
  2154.  and release" the mouse button.
  2155.  
  2156.  Break Line - This operation creates two shapes from one.  The current
  2157.  shape is modified to include only the vertices from one endpoint to the
  2158.  current vertex.  A new shape is created in the vector layer which includes
  2159.  the vertices from the current vertex to the other endpoint.
  2160.  
  2161.  Close Line - If the first and last vertices of a structure do not
  2162.  have the same position then a vertex is added to the shape which
  2163.  has the same position as the first vertex.
  2164.  
  2165.  Copy - Copies and stores the current shapes and their attribute
  2166.  data in the cut-copy-paste buffer.  The contents of this buffer are
  2167.  overwritten by this operation.
  2168.  
  2169.  Copy Shape - The current line is duplicated and placed in the same
  2170.  position as the copied shape.  When the left mouse button is depressed
  2171.  and dragged in the image window, the newly duplicated shape is displaced
  2172.  by the distance and in the direction that the cursor has moved, relative
  2173.  to the point where the left mouse button was first depressed.  Once the
  2174.  button is released, the duplicated shape takes that position.
  2175.  
  2176.  Cut - Deletes and stores the current shapes and their attribute data
  2177.  in the cut-copy-paste buffer.  The old contents of this buffer are
  2178.  overwritten by this operation.
  2179.  
  2180.  Delete Shape(s) - The current shape or shapes are removed from the
  2181.  vector layer.
  2182.  
  2183.  Delete Vertex - The current vertex is removed from the current shape.
  2184.  For shapes with just one vertex (points) the vertex is removed and
  2185.  the shape becomes empty, but is not lost from the layer.
  2186.  
  2187.  Delete Layer - Removes the currently selected vector layer from the
  2188.  application. A panel asking to confirm the operation is presented
  2189.  since this operation cannot be undone.  If the layer has been edited
  2190.  but not saved, the changes will be lost.  This operation does not
  2191.  delete the vector segment from the source file.
  2192.  
  2193.  Insert Vertex - When the left mouse button is depressed in the Main
  2194.  Image Window a vertex is inserted in the current shape between the
  2195.  current vertex and the adjacent vertex which is nearest to the image
  2196.  window cursor.  If the current vertex is an endpoint and the cursor is
  2197.  nearer to the current vertex than the next adjacent vertex, the inserted
  2198.  vertex will extend the line.
  2199.  
  2200.  Join Lines - The current vertex becomes the closest endpoint in the
  2201.  current shape; this is one of the vertices where the join will occur.
  2202.  The second vertex of the join is selected by depressing the left mouse
  2203.  button in the image window near the desired shape.  A line will be drawn
  2204.  connecting the current vertex in the current shape with the nearest
  2205.  endpoint in the shape nearest to the image window cursor.  Dragging the
  2206.  cursor updates the connecting line.  Releasing the mouse button merges
  2207.  the two selected shapes into one.
  2208.  
  2209.  Move - When the left mouse button is depressed and dragged in
  2210.  the image window, the current shapes are redrawn, displaced by the
  2211.  distance and in the direction that the cursor has moved, relative to
  2212.  the point where the left mouse button was first depressed.  This
  2213.  operation is valid for one or more current shapes.  If there is
  2214.  more than one current shape to move, a temporary bounding box is drawn
  2215.  to represent the set of shapes being moved.  While dragging with the
  2216.  left mouse button depressed, this bounding box is updated instead of
  2217.  the current shapes, but once the button is released, the shapes are
  2218.  moved.
  2219.  
  2220.  Move Vertex - When the left mouse button is depressed and dragged in
  2221.  the image window, the current shape is partially redrawn with the
  2222.  current vertex moved to the position of the image window cursor.
  2223.  When the button is released, the entire shape is updated.
  2224.  
  2225.  New Layer - Activates a panel which creates a new vector layer.
  2226.  The panel has fields for a descriptor and georeferencing information
  2227.  which the user must specify in order to create a new vector layer.
  2228.  Selecting the "Accept" button will create a new vector layer according
  2229.  to the specified options. The "Cancel" removes the New Layer panel
  2230.  and returns back to the Vector Editor without creating a new layer.
  2231.  
  2232.  New Line - After pressing this button, clicking the left mouse button
  2233.  in the image window adds a vertex in a new line at the location of the
  2234.  image window cursor.  Additional clicks will add more vertices to the
  2235.  new line.  To stop adding vertices to a new line, do one of the
  2236.  following: click the right mouse button, press the <RETURN> key, press
  2237.  the <ESCAPE> key, or select another operation.  Note that clicking the
  2238.  right mouse button will end the current line, but will not terminate
  2239.  the New Line operation.  The use of the right mouse button enables the
  2240.  user to digitize many lines without moving the mouse outside the work area.
  2241.  
  2242.  New Point - Depressing and releasing the left mouse button in the
  2243.  image window places a new point in the vector layer positioned at the
  2244.  location of the image window cursor.  Clicking on the right mouse button
  2245.  will also insert a new point at the cursor position, but the Vector Editor
  2246.  remains in New Point mode.  This allows the user to continue adding points
  2247.  to the vector layer without having to select the New Point button each time.
  2248.  If the user is in this continuous New Point mode, placing a point with the
  2249.  left mouse button will end it.  Another way of terminating the New Point mode
  2250.  is by selecting another operation or pressing New Point button again.
  2251.  
  2252.  Paste - Pastes the contents of the cut-copy-paste buffer into the
  2253.  current layer.  If the contents of the buffer include attribute fields
  2254.  which do not exist for the current layer, these attribute fields are
  2255.  added to the current layer. Should the destination layer already have
  2256.  fields defined then only those fields which have the same field name
  2257.  and type will be transferred.  Note that the contents of the
  2258.  cut-copy-paste buffer are not lost between layer changes.  If the vectors
  2259.  in the cut-copy-paste buffer are in a different projection from those in
  2260.  the destination layer, they will be reprojected where possible.
  2261.  
  2262.  Redo - Redoes previously undone operations.  This operation can be
  2263.  performed multiple times (depending on how many times "Undo" is
  2264.  performed).  This operation also stores changes in the undo-redo
  2265.  buffer, so when the buffer is cleared by certain operations (a
  2266.  warning is given before this happens), the changes are lost and
  2267.  cannot be redone.
  2268.  
  2269.  Repaint - Repaints (redraws) the entire image window.  This is used
  2270.  to refresh the image window.
  2271.  
  2272.  Rotate Line - When the left mouse button is depressed and dragged in
  2273.  the image window, the current shape is rotated about the current vertex
  2274.  in such a way as to follow the mouse movement.
  2275.  
  2276.  Select - This operation allows the selection of a set of shapes with
  2277.  a bounding box.  To make the bounding box, depress the left mouse button
  2278.  in the image window to define one corner of the box, then drag the mouse
  2279.  to make the opposite corner of the box.  Releasing the mouse button
  2280.  defines the opposite corner.  All shapes which lie inside or on the
  2281.  bounding box become the current shapes.  If the <SHIFT> key is held down
  2282.  while the bounding box is defined, all shapes selected by the box are
  2283.  added to the existing set of current shapes.
  2284.  
  2285.  Snap To Vertex - Repositions the current vertex to the nearest
  2286.  vertex in a shape that the current vertex does not belong to.
  2287.  
  2288.  Snap To Line - Repositions the current vertex to the nearest line
  2289.  that the current vertex does not belong to.  When possible, the
  2290.  nearest line is determined using the smallest perpendicular distance.
  2291.  This operation also inserts a vertex, in the nearest line, where the
  2292.  current vertex meets it.
  2293.  
  2294.  Stretch - When the left mouse button is depressed and dragged in the
  2295.  image window, the current shape is rotated and stretched about the
  2296.  current vertex in such a way as to follow the mouse movement.
  2297.  
  2298.  Undo - Undoes prior vector editing operations.  This operation can
  2299.  be performed for multiple prior operations to back up through the
  2300.  changes that were made; that is, this operation is not limited to
  2301.  only one level of undoing.  The changes that are made through vector
  2302.  editing operations are stored in an undo-redo buffer, so they can
  2303.  be retrieved by an Undo operation.  However, some operations cause
  2304.  the contents of the undo-redo buffer to be cleared (a warning is given
  2305.  before this happens), so prior changes are lost and cannot be undone.
  2306.  
  2307.  See Also: GeoEdit,
  2308.        {..|..|Prefer|Shape Save}Shape Save Limit
  2309.  
  2310. 3    Vector Editing Accelerators
  2311. @keyword{operations accelerators}
  2312. @index{Vector Editing!Operations!Accelerators}
  2313. @index{Accelerators!for vector editing operations}
  2314.  
  2315.  Accelerators are keystrokes which represent vector editing operations.
  2316.  They permit the selection of a vector operation without having to use
  2317.  the mouse.  Only the more frequently used vector operations have
  2318.  accelerator keys which are listed below.  Some operations have more
  2319.  than one accelerator, and some accelerators are formed with key
  2320.  combinations (in which the first key is held down while the second key
  2321.  is pressed).
  2322.  
  2323.      Break Line      b
  2324.      Copy            c
  2325.      Cut             x
  2326.      Delete Shape    <DEL>
  2327.      Delete Vertex   d  or  <CTRL>-<DEL>
  2328.      Insert Vertex   i
  2329.      Join Lines      j
  2330.      Move            v
  2331.      Move Vertex     m
  2332.      New Line        l
  2333.      New Point       p
  2334.      Paste           t
  2335.      Redo            r
  2336.      Rotate          o
  2337.      Select          s
  2338.      Undo            u or <CTRL>-z
  2339.  
  2340. 2    Attribute Editing
  2341. @keyword{vectors fields attributes}
  2342. @index{Vector Editing!Attributes} {Vector!Attribute Editor}
  2343. @index{Editing!Vector attributes} {Attribute!Editor}
  2344.  
  2345.  The Attribute Editor can be launched from the "Attributes..." button on
  2346.  the Vector Editor or from the "Attributes..." button on the Attribute
  2347.  Query panel.  This panel permits the viewing and editing of
  2348.  attribute field information for the current layer.  The Attribute
  2349.  Editor has two main sections: "Fields" and "Values".
  2350.  
  2351.  The "Fields" section deals with the naming and formatting of a single
  2352.  attribute field, as well as the creation of new fields.  If the
  2353.  current layer has attribute fields associated with it, this section
  2354.  of the Attribute Editor will be filled in.
  2355.  
  2356.  The "Values" section deals with the attribute field values for the
  2357.  currently selected shape.  If there is no current shape or if there
  2358.  is more than one current shape, this section of the Attribute Editor
  2359.  is disabled.  If there are no attributes in the current layer, this
  2360.  section is blank, except for the shape id label.
  2361.  
  2362.  See Also: {..|}Selecting Shapes and Vertices
  2363.  
  2364. 3    "Fields" Section of the Attribute Editor
  2365.  
  2366.  A list of all attribute fields for the current layer appears at the
  2367.  top of the "Fields" section.  One field at a time may be selected from
  2368.  this list for viewing or modifying the field's name and formatting
  2369.  information.  The name of the field is displayed in the editable "Name"
  2370.  text field.  Below the name is a label showing the field's data type
  2371.  which could be one of the following: integer, float, double, string,
  2372.  integer list.  The data type of the field cannot be changed, but it
  2373.  can be specified when a new field is created.
  2374.  
  2375.  The editable "Default" text field shows the default value for the field.
  2376.  If there are existing shapes when the default value is changed, those
  2377.  shapes' values will not change, even if they had the same value as the
  2378.  old default.  Only subsequently created shapes will be assigned the new
  2379.  default value.
  2380.  
  2381.  The editable "Width" text field specifies the maximum number of characters
  2382.  or digits that the attribute field can have.  If the field is of type float
  2383.  or double, the "Precision" of the value can also be specified.  If the
  2384.  attribute field is not of type float or double, then the "Precision" text
  2385.  field is disabled.
  2386.  
  2387.  The "Justification" radio buttons show the justification of the field
  2388.  value.  Fields of all data types except strings and integer lists
  2389.  may be left or right justified.  If the attribute field cannot be
  2390.  justified, these radio buttons are disabled.
  2391.  
  2392.  The "Add New Field" button launches a panel for creating and adding a new
  2393.  field to the current layer.
  2394.  
  2395. 4    Adding Attribute Fields
  2396. @keyword{vectors fields attributes}
  2397. @index{Vector Editing!Attributes!Adding Fields}
  2398. @index{Attribute!Adding attribute fields}
  2399.  
  2400.  The "Add New Field" panel is launched by pressing the "Add New Field"
  2401.  button on the Attribute Editor.  This panel allows the user to select
  2402.  the data type and to set the default value of the new attribute field
  2403.  to be added to the current layer.
  2404.  
  2405.  Selecting the "Accept" button creates the new field and adds it to the
  2406.  current layer.  The new field is named "NewField" by default, but it
  2407.  can be changed through the "Fields" section of the Attribute Editor.
  2408.  If there are existing shapes in the layer when this new attribute field
  2409.  is added, those shapes automatically inherit the new field with the
  2410.  default value.  Any new shapes created in the layer will also have this
  2411.  new field with the default value.
  2412.  
  2413.  Selecting the "Cancel" button cancels the operation and closes the
  2414.  "Add New Field" panel.
  2415.  
  2416.  See Also: {..|..|..|}Attribute Editing
  2417.  
  2418. 3    "Values" Section of the Attribute Editor
  2419.  
  2420.  The "Values" section shows the current shape id and all of the
  2421.  attribute field values for that shape.  Each attribute field value
  2422.  is displayed in an editable text field, so the values can be modified.
  2423.  
  2424.  If there are too many fields in the current layer to display at once
  2425.  in the "Values" section, two buttons, "Previous" and "Next", appear
  2426.  at the bottom of the section for scrolling up and down through the
  2427.  list of attributes.
  2428.  
  2429. 2    Vector Style Editing
  2430. @keyword{vectors style colour color width highlight}
  2431. @index{Vector Editing!Style} {Vector!Style Editor} {Style Editor}
  2432. @index{Editing!Vector style}
  2433.  
  2434.  The Style Editor is launched from the "Style..." button on the Vector
  2435.  Editor. 
  2436.  
  2437.  At the top of the Style Editor panel is the name of the currently
  2438.  selected vector.
  2439.  
  2440.  The Colour field allows you to select the colour of the vectors.
  2441.  The Highlight field controls the colour of the currently selected
  2442.  vector.  Width specifies how many pixels wide the vector line should
  2443.  be (1-8).  RST Mode specifies whether or not a Representation Style
  2444.  Table will be used.  When RST Mode is `On' the Representation Style
  2445.  Table section of the panel is activated, allowing you to edit the
  2446.  fields.
  2447.  
  2448.  The Rep Code parameter specifies which column in the attribute
  2449.  table will be used to determine how the shape should be drawn.
  2450.  If None is selected, all shapes are drawn the same; if a specific
  2451.  column name is selected, it becomes possible to access the 
  2452.  Representation Style Table.
  2453.  
  2454.  The Text parameter specifies which column in the attribute table
  2455.  will be used to determine where to find text.
  2456.  
  2457.  The Angle parameter specifies which column in the attribute table
  2458.  will be used to determine at what angle to print text.
  2459.  
  2460.  The Style Editor panel will also allow you to Load an existing RST,
  2461.  and to Edit the current RST.
  2462.  
  2463. 2    Attribute Querying
  2464. @keyword{vectors fields attributes query}
  2465. @index{Vector Editing!Attribute Querying} {Vector!Attribute Querying}
  2466. @index{Querying!Vector Attributes} {Attribute!Querying}
  2467.  
  2468.  The Attribute Query panel is launched from the "Query..." button on
  2469.  the Vector Editor.  This panel is used for performing queries on the
  2470.  attribute fields for a set of shapes in the current layer.
  2471.  
  2472.  The name and descriptor of the current layer appear at the top of the
  2473.  Attribute Query panel.  Below this are two labels and a list of shapes
  2474.  with all of their attribute field values.  The label on the left side
  2475.  shows how many shapes are showing in the list out of the total number
  2476.  of shapes in the layer.  The other label shows how many shapes are
  2477.  highlighted (that is, selected) in the list.
  2478.  
  2479.  The shapes showing in the list correspond to the current shapes.  If
  2480.  the list of current shapes is larger than 100, not all shapes are
  2481.  shown in the list to save time (if the list is large, updating it may
  2482.  take long).  In such cases, the last entry in the list says, "Click
  2483.  here to display the remaining shapes."  If this entry is selected,
  2484.  the entire list of current shapes is retrieved and displayed.
  2485.  
  2486.  To highlight shapes in the list, select them using the mouse.
  2487.  Multiple shapes can be selected by dragging through the list or by
  2488.  holding down the <CONTROL> key while selecting shapes in the list.
  2489.  If the "Click here..." line is highlighted, that means all of the
  2490.  hidden shapes are also highlighted.
  2491.  
  2492.  The "Show All" button makes all of the shapes in the layer become
  2493.  the current shapes so they can be seen in the list of shapes.  
  2494.  
  2495.  The "Remove Selections" button removes the selected entries from the
  2496.  list, causing those entries' shapes to be removed from the list of
  2497.  current shapes.
  2498.  
  2499.  Below the list is a text field for entering a new query expression
  2500.  or selecting a previously entered expression.  The query expression
  2501.  must follow the rules of the expression grammar.
  2502.  
  2503.  Every time a new query expression is entered in the text field, the
  2504.  new expression is stored in a buffer.  This buffer stores, at most, the
  2505.  last ten query expressions that were entered.  To scroll through the
  2506.  contents of this buffer, press the up and down arrow buttons on the side
  2507.  of the text field.  Note that this buffer stores query strings whether
  2508.  or not they follow the rules of the expression grammar.  Also, if a
  2509.  previously entered expression is modified, the modified expression is
  2510.  stored as a separate expression in the buffer.
  2511.  
  2512.  Pressing <RETURN> in the query expression's text field or pressing
  2513.  the "Query" button applies the query expression to the list of
  2514.  shapes.  The shapes that satisfy the query expression become the
  2515.  new current shapes, replacing the contents of the list.
  2516.  
  2517.  The "Attributes..." button at the bottom of the panel launches the
  2518.  Attribute Editor.
  2519.  
  2520.  See Also: {..|}Attribute Editing, {..|}Selecting Shapes and Vertices
  2521.  
  2522. 3    Query Expression Grammar
  2523. @keyword{expression grammar querying attributes}
  2524. @index{Querying!Expression grammar}
  2525. @index{Grammar for Attribute Query Expressions}
  2526.  
  2527.  A query expression must follow the grammar structure of EXPR which
  2528.  is defined below.  There is no limit to the length of a query expression.
  2529.  
  2530.           EXPR:   PRIMARY
  2531.                   unary_op (EXPR)
  2532.                   (EXPR) binary_op (EXPR)
  2533.  
  2534.        PRIMARY:   field OP value
  2535.  
  2536.             op:   =
  2537.                   <
  2538.                   >
  2539.                   <=
  2540.                   >=
  2541.           <>
  2542.  
  2543.       unary_op:   not
  2544.  
  2545.      binary_op:   and
  2546.                   or
  2547.  
  2548.  In the above grammar definition, "field" represents a field name
  2549.  and "value" represents a field value.  Query expressions are always
  2550.  case insensitive.  This applies to attribute field names as well as
  2551.  string fields.
  2552.  
  2553.  For example, the following query expressions are equivalent:
  2554.  
  2555.   CROPTYPE = WHEAT
  2556.   croptype = wheat
  2557.   CropType = Wheat
  2558.   Croptype = WHEAT
  2559.  
  2560.  The field name does not have to be specified in full.  That is,
  2561.  pattern matching is performed for the field names.  However,
  2562.  this pattern matching only works when the first letter or letters of
  2563.  the field name are given.  If a pattern is given but it does not
  2564.  uniquely identify one field name (it matches more than one field name),
  2565.  then the first field matching the pattern is used in the query.
  2566.  
  2567.  For example, if the current layer has one field called "CropType",
  2568.  then query expressions (1) and (2) would be valid while (3) would not be
  2569.  because of the pattern-matching rules.  Query expression (1) and (2)
  2570.  would result in the same results if applied to the same set of shapes.
  2571.  
  2572.   (1) CropType = wheat
  2573.   (2) Crop = wheat
  2574.   (3) Type = wheat
  2575.  
  2576.  If a field name contains non-alphanumeric characters, then it must
  2577.  be enclosed in double quotes.  For example:
  2578.  
  2579.   "Crop_Type" = wheat
  2580.   "Crop Area" > 3000
  2581.  
  2582.  If a value contains non-alphanumeric characters, it must also be
  2583.  enclosed in double quotes.  For example:
  2584.  
  2585.   LOCATION <> "ORANGE COUNTY"
  2586.  
  2587. 3    Query Expression Examples
  2588. @keyword{expression querying attributes}
  2589. @index{Querying!Expression example}
  2590.  
  2591.  Assume the current layer has these attribute fields defined:
  2592.  
  2593.      Attribute Field Name     Data Type
  2594.  
  2595.      Latitude                 float
  2596.      Longitude                float
  2597.      County                   string
  2598.      Population               integer
  2599.  
  2600.  To find, in the list of highlighted shapes in the Attribute Query panel,
  2601.  the shapes that have both a latitude greater than 45.3 and a longitude
  2602.  less than or equal to 62.7, this is the query expression to use:
  2603.  
  2604.      (Latitude > 45.3) and (Longitude >= 62.7)
  2605.  
  2606.  Other examples of valid query expressions:
  2607.  
  2608.      ((Latitude = 37) and (Longitude >= 62.7)) or (Population <= 5000)
  2609.      (Latitude>25) or (County = "Tweed Township")
  2610.  
  2611.  Here are some queries which would produce the same results for the same
  2612.  set of highlighted query shapes:
  2613.  
  2614.      Population <= 60000
  2615.      not (Population > 60000)
  2616.      (Population>0) and (Population<60001)
  2617.  
  2618. 1    Multi-Histogram
  2619. @keyword{Multihistogram Panel Imagery}
  2620. @index{Histogram!Multi-Histogram Panel}{Imagery!Histogram}
  2621.  
  2622.  The Multi-Histogram panel allows the user to visualize histograms of
  2623.  one or more image planes under a bitmap mask.  This panel can be 
  2624.  launched by selecting "Histograms" from the "View" pulldown 
  2625.  menu in ImageWorks.  
  2626.  
  2627.  The Multi-Histogram panel displays one or more histograms of image
  2628.  values.  The horizontal dimension represents the grey level values 
  2629.  from 0 on the left to 255 on the right.  The tick marks along the 
  2630.  bottom show the 64, 128, and 192 points on the histogram.  
  2631.  
  2632.  The vertical dimension is a representation of the percentage of the 
  2633.  pixels in the sample area that have the indicated grey level value.  
  2634.  Labels on the left side of the histogram show the maximum percentage
  2635.  representable on the graph.  If the top label is "5%", and a spike of
  2636.  the histogram rises to half the height of the graph, then the grey
  2637.  level at that spike represents about 2 1/2% of the sampled area of
  2638.  the image.
  2639.  
  2640.  The maximum percentage can be controlled by the slider bar beneath
  2641.  the "Maximum Percentage Shown" title bar.
  2642.  
  2643.  The buttons beneath the "Image Planes" title bar allow the selection
  2644.  of one or more image planes for which histograms will be shown.  The 
  2645.  histogram title will indicate the image plane and sampling area being 
  2646.  displayed.
  2647.  
  2648.  The "Graphic Mask" area of the panel allows the selection of the sampling
  2649.  area.  This can be the area under any of the graphic masks, or just the 
  2650.  area of the image that is currently showing in the main image viewing 
  2651.  window, or all the data in the image plane.
  2652.  
  2653.  The histograms on this panel will be updated every time the image data,
  2654.  bitmap masks, or image view windows change.  If the "Showing" mask area
  2655.  is chosen, it is possible to roam around the image planes, seeing 
  2656.  dynamically how the histograms of different image planes change from
  2657.  area to area.
  2658.  
  2659. 2    Multi-Histogram Statistics
  2660. @keyword{Multihistogram Statistics}
  2661. @index{Histogram!Multi-Histogram Panel!Multi-Histogram Statistics Panel}{Imagery!Histogram!Statistics}
  2662.  
  2663.  The Multi-Histogram Statistics panel displays the mean, standard deviation,
  2664.  minimum value,maximum value, and the number of pixels for the selected Image 
  2665.  plane under the current Graphic Mask.
  2666.  
  2667. 1    Numeric Values
  2668. @keyword{Digital Matrix Imagery}
  2669. @index{Imagery!Numeric Values}{Numeric Values}
  2670.  
  2671.  The Numeric Values, or Digital Image Display report is a text
  2672.  display of the digital values in one or more image planes, centered
  2673.  on the current cursor position.
  2674.  
  2675.  The Digital Image Display panel can be launched by selecting the
  2676.  "Numeric Values" entry on the ``View'' pulldown menu of ImageWorks.
  2677.  The panel will be created with a digital matrix for each of the
  2678.  image planes visible at the time the panel is created.
  2679.  
  2680.  Multiple panels may be created, by selecting ``Numeric Values'' from the
  2681.  ``View'' menu multiple times. If the image plane to colour gun mappings
  2682.  are changed between launches of the Digital Matrix report, each of
  2683.  the reports will display the digital data from a different image
  2684.  plane. 
  2685.  
  2686.  The grey level for the single pixel under the cursor is displayed on the
  2687.  General Control Panel.
  2688.  
  2689. 1    Set Georeferenced Map Area
  2690. @keyword{Georeferencing}
  2691. @index{Georeferenced Map Area}
  2692.  
  2693.  The Set Georeferenced Map Area panel allows the user to either set 
  2694.  or edit the georeferencing information of an image.  This panel also 
  2695.  permits the user to specify the area to which an image will be loaded 
  2696.  in the ImageWorks window.
  2697.  
  2698.  The Set Georeferenced Map Area panel can be invoked by selecting the
  2699.  "Set Map Area" option from the "View" pulldown menu in ImageWorks.
  2700.  
  2701.  The top area of the panel contains georeferencing information.
  2702.  There is an option menu to select different coordinate systems, and 
  2703.  there are fields to display (or edit) the UTM Zone, the upper left 
  2704.  corner coordinates, and the lower right corner coordinates.  This is 
  2705.  known as a ``GeoEdit'' control.
  2706.  
  2707.  The next section of the panel contains two radio boxes for selection 
  2708.  of the "Informational Only" or "User Controlled" mode.
  2709.   
  2710.  The "Informational Only" mode displays the georeferencing values of the 
  2711.  image that is initially loaded into ImageWorks.
  2712.  
  2713.  The "User Controlled" mode permits the user to specify the area represented
  2714.  by the ImageWorks work area.  Note that this is the entire work area
  2715.  in memory, not necessarily just what is shown in the view window.
  2716.  
  2717.  When an image is loaded with the "User Controlled" mode selected, the 
  2718.  portion of the image, and the area of the display it is loaded to will
  2719.  be adjusted according to the georeferenced bounds established in this panel.
  2720.  
  2721.   - NOTE: For UTM coordinate systems, it is important to specify the 
  2722.     UTM ZONE if the image that will be loaded contains UTM Zone 
  2723.     information.
  2724.  
  2725.  The following example shows how the Set Georeferenced Map 
  2726.  Area panel can be used:
  2727.  
  2728.   - Start ImageWorks.
  2729.  
  2730.   - Load the demonstration database file called "irvine.pix".
  2731.  
  2732.   - Launch the "Set Georeferenced Map Area" panel.
  2733.  
  2734.   - In the "Informational Only" mode, the panel displays the
  2735.     georeferencing information of "irvine.pix". 
  2736.     NOTE: The image is in UTM coordinates and has a Zone number.
  2737.  
  2738.   - In the "User Controlled" mode, the user can choose to  
  2739.     edit the georeferencing information of the database file.
  2740.  
  2741.   - Toggling back and forth between the "Informational Only" and
  2742.     "User Controlled" mode will clear any edited georeferenced
  2743.     values to their corresponding default values. 
  2744.  
  2745.   - To set a georeferenced map area for an image that will be loaded in
  2746.     ImageWorks, make sure that the "User Controlled" mode is
  2747.     selected. If required, enter a UTM Zone value similar to 
  2748.     that of the image that will be loaded.  
  2749.     Then load the demonstration file called "eltoro.pix".
  2750.     The image from "eltoro.pix" will align within the specified 
  2751.     georeferenced values.
  2752.  
  2753.  NOTE: Once two or more images of different coordinate systems are
  2754.  loaded and assigned to a specified georeferenced area, switching
  2755.  to the "Informational Only" mode would not display any relevant 
  2756.  georeferencing information.
  2757.  
  2758.  The georeferencing information of each image can be viewed by 
  2759.  selecting "Image Info" from the "View" pulldown menu.
  2760.  
  2761.  See Also: {|}Image Info, GeoEdit
  2762.  
  2763. 1    ImageWorks Linking
  2764. @keyword{Georeferencing}{Linked Windows}
  2765. @index{Georeferencing!Linked Windows}{Linked Windows}
  2766.  
  2767.  NOTE: Only available on Unix.
  2768.  
  2769.  The ``Link Windows...'' entry on the ``View'' pulldown menu in ImageWorks 
  2770.  pops up a Link Control panel that allows a user to link the cursor in one 
  2771.  ImageWorks session to that of another ImageWorks session.
  2772.  
  2773.  To employ this feature it is necessary to have two or more ImageWorks
  2774.  sessions running on the same machine, started by the same user as
  2775.  determined by the userid.  Then the user selects the "Link" radio button on
  2776.  the Link Control panel of each of the ImageWorks sessions to enable the
  2777.  link.  
  2778.  
  2779.  After this is done, moving the cursor in one of the linked ImageWorks 
  2780.  sessions should cause the cursor to track in all other linked ImageWorks 
  2781.  sessions.  The locations will track according to the georeferenced 
  2782.  location of the cursor if the georeferencing types match, otherwise they 
  2783.  will track according to the ImageWorks pixel/line coordinates.
  2784.  
  2785.  The link option can be tried out on the demonstration files irvine.pix,
  2786.  eltoro.pix, and map100.pix.  First launch three copies of ImageWorks, 
  2787.  from the command line, or from VDINIT.  Then load them with the 
  2788.  demonstration file irvine.pix using the "Load Imagery" panel in the
  2789.  "File" pulldown menu.  Then select the "Link" toggle from the "View"
  2790.  menu in each of the ImageWorks sessions.  Thereafter, moving the
  2791.  cursor in any one of the ImageWorks sessions should result in the
  2792.  cursor tracking to the same georeferenced location in the other two
  2793.  ImageWorks windows.
  2794.  
  2795.  Linked cursors can be disabled by selecting the ``Unink'' radio button
  2796.  on the Link Control panel.
  2797.  
  2798. 1    Cursor Control
  2799. @keyword{Cursor Colour Position Enable}
  2800. @index{Cursor!Control}
  2801.  
  2802.  The Cursor Control panel is used to display and update the state of the
  2803.  cursor in the main ImageWorks display window.
  2804.  In particular it is possible to change the cursor colour, enable it,
  2805.  disable it, and move it to a new position using the Cursor Control panel.
  2806.  The Cursor Control panel is launched from the "Cursor" entry on
  2807.  the "Tools" menu in ImageWorks.  
  2808.  
  2809. @index{Cursor!Enable}
  2810.  The Cursor Mode radio buttons can be used to enable and disable the 
  2811.  cursor.  This area will correctly show whether the cursor is currently
  2812.  enabled or disabled, even if it was changed by the DCP PACE program.
  2813.  
  2814. @index{Cursor!Colour}
  2815.  
  2816.  The Cursor Colour option menu can be used to modify the cursor colour.  If
  2817.  the cursor colour is changed using the PACE program DCP, or by some other 
  2818.  means, the displayed colour on this panel may be incorrect.
  2819.  
  2820. @index{Cursor!Position}
  2821.  
  2822.  The four pairs of text fields display the cursor coordinates in different 
  2823.  coordinate systems.  It is possible to modify the coordinates displayed 
  2824.  in any of these text fields in order to move the cursor.  This means it 
  2825.  is possible to move the cursor in any of the supported coordinate schemes.
  2826.  
  2827.  The first coordinate system is Display coordinates.  This is measured in
  2828.  terms of the size of the image planes in memory in ImageWorks (as determined
  2829.  in VDINIT or the ImageWorks Configuration Panel) which may be larger than 
  2830.  the window in which the imagery is being displayed.  The location is 
  2831.  displayed as a pixel / line pair.
  2832.  
  2833.  The second coordinate system is Database coordinates.  This representation
  2834.  is based on the assumption that the currently selected file has been loaded
  2835.  based on the most recently selected input window in the Image or Graphic
  2836.  load panels.  If no input window has been selected, the entire database 
  2837.  is assumed.  The result is the pixel and line that the cursor points to 
  2838.  in the currently selected database.
  2839.  
  2840.  The third pair of text fields displays the cursor coordinates in geocoded
  2841.  coordinates according to the geocoding associated with the Image, Graphic,
  2842.  and Vector layers currently being displayed.  If all the data layers being
  2843.  displayed do not match, no coordinates will be displayed.  If the loaded
  2844.  data has no geocoded locations associated with it, then the geocoded location
  2845.  will be shown in pixels and lines, and will normally be the same as the
  2846.  Database coordinates.  The units displayed to the right of the text fields
  2847.  are a clue to the geocoding type.
  2848.  
  2849.  The last coordinate system displayed is Geographic (Lat/Long).  If sufficient
  2850.  geocoding information is available for the viewed data layers to project the
  2851.  cursor location into Geographic coordinates it will be displayed.  Typically
  2852.  UTM data with a valid zone number must be provided for this transformation
  2853.  to take place.
  2854.  
  2855.  See Also: {..|Control}Control Panel, DCP, 
  2856.        {..|Prefer|Cursor Col}Color Preference
  2857.  
  2858. 1       Filter
  2859. @keyword{Imagery Filtering}
  2860. @index{Imagery!Filtering}{Filtering}
  2861.     
  2862.  The Filter panel is used to provide different filter operations on
  2863.  an image. A filter can be used to either sharpen, smooth or detect 
  2864.  edges that are present in an image.
  2865.  
  2866.  The Filter panel can be launched by selecting "Filter" from the
  2867.  "Tools" pulldown menu on the main ImageWorks window. The Filter
  2868.  panel consists of three main areas containing the selection for the
  2869.  input and output channels, the filter size and the filter type.
  2870.  Launching the Filter panel will also display a Filter preview panel
  2871.  that provides a preview of the filtered result.
  2872.  
  2873.  The Filter Preview panel contains a "Close" button, an enhancement 
  2874.  option, and a "Zoom" option menu.  This panel displays the result of 
  2875.  any selected filter from the Filter panel.  The user can examine the 
  2876.  filtered image in the preview window before applying the filter   
  2877.  operation on the main ImageWorks window.
  2878.  
  2879.  The Input/Output Channel Selection area contains three option menus.
  2880.  The image plane that needs to be filtered is specified by selecting
  2881.  the first option menu. There is a "Showing" option for the input
  2882.  image that allows the user to apply a filtering operation on the
  2883.  currently visible image plane(s).  This option will automatically set 
  2884.  the output option to "Showing" to display the filtered result.
  2885.  
  2886.  The resulting filtered image is written to the output image plane
  2887.  specified by the output option menu.  Any existing image in the 
  2888.  output image plane will be overwritten by the filtering result.
  2889.  
  2890.  The Mask option specifies whether the filter is applied to the 
  2891.  entire image or under a specific graphic plane. Only one graphic
  2892.  plane can be specified at a time.
  2893.  
  2894.  The filter size area displays the dimensions of the filter.  The    
  2895.  user can either select one of the listed square filters, or enter 
  2896.  a specific filter size between the up and down arrow buttons.  The 
  2897.  filter dimensions must be expressed in odd numbers, in the range 
  2898.  1 to 33.  The dimensions specify the number of pixels by the number 
  2899.  lines. The filter size need not be square
  2900.  
  2901.  The third area of the Filter panel contains a list of filter
  2902.  operations that can be applied to an image.  See the Subtopics
  2903.  area for more information about each type of filter. 
  2904.  
  2905.  There is an "Apply" push button on the Filter panel that 
  2906.  will apply the selected filter operation on the main ImageWorks
  2907.  window.
  2908.  
  2909.  
  2910. 2     Average Filter
  2911. @index{Filtering!Average}
  2912. @keyword{average filter}
  2913.  
  2914.  The Average (mean) filter smooths image data, thus eliminating noise.
  2915.  This filter performs spatial filtering on each individual pixel in
  2916.  an image using the grey level values in a square or rectangular
  2917.  window surrounding each pixel. 
  2918.  
  2919.  For example:
  2920.    a1 a2 a3            
  2921.    a4 a5 a6             3x3 filter window
  2922.    a7 a8 a9 
  2923.  
  2924.  The average filter computes the sum of all pixels in the filter window 
  2925.  and then divides the sum by the number of pixels in the filter window:
  2926.  
  2927.  Filtered pixel = (a1 + a2 + a3 + a4 ... + a9) / 9
  2928.  
  2929.  NOTE: In order to filter pixels located near the edges of the image,
  2930.  edge pixel values are replicated to give sufficient data.
  2931.  
  2932. 2     Gaussian Filter (SIGMSQ = 4)
  2933. @index{Filtering!Gaussian}{Gaussian Filter}
  2934. @keyword{Filtering Gaussian}
  2935.  
  2936.  The Gaussian Filter is used as a low pass filter to blur an image.
  2937.  
  2938.  This filter uses the following Gaussian function to compute the filter
  2939.  weights:
  2940.  
  2941.   G(i,j) = exp ( -((i-u)**2 + (j-v)**2) / (2 * SIGMSQ) )
  2942.  
  2943.  where: (i,j) is a pixel within the filter window, 
  2944.  (u,v) is the centre of the filter window and
  2945.  SIGMSQ is set to 4.
  2946.  
  2947.  The filter weights W(i,j) are the normalized values of G(i,j) over
  2948.  the entire filter window. Hence the sum of all weights is 1.
  2949.  
  2950.  The grey level of a filtered pixel is the sum of W(i,j)*V(i,j) over
  2951.  all pixels in the filter window, where V(i,j) is the original
  2952.  value at location (i,j).
  2953.  
  2954.  NOTE: In order to filter pixels located near the edges of the image,
  2955.  edge pixel values are replicated to give sufficient data.
  2956.  
  2957. 2     Type 1/Type 2 - Laplacian Edge Detector Filter 
  2958. @index{Filtering!Laplacian}{Laplacian Filter}
  2959. @keyword{filtering laplacian}
  2960.  
  2961.  The Laplacian edge detector generates sharp edge definition of an 
  2962.  image. This filter can be used to highlight edges having both
  2963.  positive and negative brightness slopes.
  2964.  
  2965.  The two Laplacian filters have different weight arrangements 
  2966.  as shown below:
  2967.  
  2968.  Example of 3x3 Laplacian filters.
  2969.  
  2970. @verbatim 
  2971.          Type 1                  Type 2
  2972.        
  2973.         0  1  0                 -1 -1 -1
  2974.         1 -4  1                 -1  8 -1
  2975.         0  1  0                 -1 -1 -1
  2976.  
  2977.         where sum of all the weights = 0 
  2978. @end
  2979.  
  2980.  NOTE: In order to filter pixels located near the edges of the image,
  2981.  edge pixel values are replicated to give sufficient data.
  2982.  
  2983.  
  2984. 2        Sobel Edge Detector Filter
  2985. @index{Filtering!Sobel}{Sobel Edge Detection Filter}
  2986. @keyword{filtering sobel edge detection}
  2987.  
  2988.  This filter creates an image where edges (sharp changes in grey
  2989.  level values) are shown. Only a 3x3 filter size can be used with
  2990.  this filter.
  2991.  
  2992.  This filter uses two 3x3 templates to calculate the Sobel
  2993.  gradient value as shown below:
  2994.  
  2995.  Templates: 
  2996. @verbatim
  2997.  -1  0  1       1  2  1
  2998.  -2  0  2       0  0  0
  2999.  -1  0  1      -1 -2 -1
  3000.  
  3001.      X             Y
  3002.  
  3003.  Apply the templates to a 3x3 filter window.
  3004.  
  3005.          a1 a2 a3
  3006.          a4 a5 a6        3x3 filter window
  3007.          a7 a8 a9
  3008. @end
  3009.  
  3010.  where a1 .. a9 are grey levels of each pixel in the filter window.
  3011.  
  3012.  X = -1*a1 + 1*a3 - 2*a4 + 2*a6 - 1*a7 + 1*a9
  3013.  
  3014.  Y = 1*a1 + 2*a2 + 1*a3 - 1*a7 - 2*a8 - 1*a9
  3015.  
  3016.  Sobel Gradient = sqrt(X*X + Y*Y)
  3017.  
  3018.  NOTE: In order to filter pixels located near the edges of the image,
  3019.  edge pixel values are replicated to give sufficient data.
  3020.  
  3021.  
  3022. 2     Prewitt Edge Detector Filter
  3023. @index{Filtering!Prewitt}{Prewitt Edge Detection Filter}
  3024. @keyword{filtering prewitt edge detection}
  3025.  
  3026.  This filter creates an image where edges (sharp changes in grey
  3027.  level values) are shown.  Only a 3x3 filter size can be used with
  3028.  this filter.
  3029.  
  3030.  This filter uses two 3x3 templates to calculate the Prewitt
  3031.  gradient value as shown below:
  3032.  
  3033.  Templates:
  3034. @verbatim
  3035.   -1  0  1    
  3036.   -1  0  1    X
  3037.   -1  0  1
  3038.  
  3039.    1  1  1
  3040.    0  0  0    Y
  3041.   -1 -1 -1
  3042.  
  3043.  Apply the templates to a 3x3 filter window.
  3044.  
  3045.    a1 a2 a3
  3046.    a4 a5 a6   3x3 filter window
  3047.    a7 a8 a9      
  3048. @end
  3049.  
  3050.  where a1 .. a9 are grey levels of each pixel in the filter window.
  3051.  
  3052.  X = -1*a1 + 1*a3 - 1*a4 + 1*a6 - 1*a7 + 1*a9
  3053.  
  3054.  Y = 1*a1 + 1*a2 + 1*a3 - 1*a7 - 1*a8 - 1*a9
  3055.  
  3056.  Prewitt Gradient = sqrt(X*X + Y*Y)
  3057.  
  3058.  NOTE: In order to filter pixels located near the edges of the image,
  3059.  edge pixel values are replicated to give sufficient data.
  3060.  
  3061. 2     Edge Sharpening Filter
  3062. @index{Filtering!Edge Sharpening}{Edge Sharpening Filter}
  3063. @keyword{filtering edge sharpening}
  3064.  
  3065.  This filter uses a subtractive smoothing method to sharpen an
  3066.  image. First an average filter is applied to the image.  The
  3067.  averaged image retains all low spatial frequency information but   
  3068.  has its high frequency features, such as edges and lines, attenuated.
  3069.  Consequently, the averaged image is subtracted from its original
  3070.  image and the resultant difference image will have primarily the edges
  3071.  and lines remaining.  After the edges are determined in this manner, 
  3072.  the difference image is added back to the original image to give an 
  3073.  edge enhanced image.  The resultant image will have clearer high 
  3074.  frequency detail; however, there is a tendency for noise to be 
  3075.  enhanced, as might be expected.
  3076.  
  3077.  NOTE: In order to filter pixels located near the edges of the image, 
  3078.  edge pixel values are replicated to give sufficient data.
  3079.  
  3080. 2    Median Filter
  3081. @index{Filtering!Median}{Median Filter}
  3082. @keyword{filtering median}
  3083.  
  3084.  The median filter smooths image data.  The median filter computes the
  3085.  median values within a rectangular filter window surrounding each pixel.
  3086.  This has the effect of smoothing the image and preserving edges. 
  3087.  
  3088.  Example:
  3089.  
  3090.     5 3 11 
  3091.    12 4  9     3x3 filter window
  3092.     8 6 14
  3093.  
  3094.  The median filter finds the median pixel value (the "middle"
  3095.  value in an ordered set of values, below and above which there
  3096.  are an equal number of values). For example, 8 is the median
  3097.  value for the above given set of grey level 
  3098.  values (3,4,5,6,(8),9,11,12,14).
  3099.  
  3100.  NOTE: In order to filter pixels located near the edges of the image,
  3101.  edge pixel values are replicated to give sufficient data.
  3102.  
  3103. 2    Mode Filter
  3104. @index{Filtering!Mode}{Mode Filter}
  3105. @keyword{filtering mode}
  3106.  
  3107.  The mode filter is primarily used to clean up thematic maps for
  3108.  presentation purposes, in that it replaces small "island" themes
  3109.  by their larger, surrounding themes.
  3110.  
  3111.  The mode filter computes the mode of the grey level values (the most
  3112.  frequently occurring grey level value) within the filter window
  3113.  surrounding each pixel. 
  3114.  
  3115.  The minimum filter size is 1 by 3, and the maximum filter size 
  3116.  allowed is 7 by 7. The filter window does not need to be square. 
  3117.  
  3118.  Example:
  3119.  
  3120.     5 3 3 
  3121.     3 5 3     3x3 filter window
  3122.     3 4 5 
  3123.  
  3124.  Filtered pixel of filter window (3,3,3,3,3,4,5,5,5) is set to
  3125.  3, occurs 5 times.
  3126.  
  3127.  NOTE: In order to filter pixels located near the edges of the image,
  3128.  edge pixel values are replicated to give sufficient data.
  3129.  
  3130.  There could be a situation where we have pixel values that occur
  3131.  at the same number of times. In this case, the first max. pixel
  3132.  value is returned.
  3133.  
  3134.  Example:
  3135.  
  3136.     5 3 3 
  3137.     1 2 3     3x3 filter window
  3138.     5 4 5 
  3139.  
  3140.  Filtered pixel of filter window (5,3,3,1,2,3,5,4,5) is set to 5.
  3141.  [Pixel 3 occurs 3 times and pixel 5 occurs 3 times - the returned
  3142.   pixel value is 5]
  3143.  
  3144.  NOTE: The EASI/PACE FMO program also performs mode filtering. In the FMO
  3145.  program, there are additional parameters that the user can specify.
  3146.  Due to the different technique in performing mode filtering in ImageWorks
  3147.  and the FMO program, the result of the filtered image may be 
  3148.  slightly different when comparing the two results.
  3149.  
  3150. 2    Gamma Filter
  3151. @index{Filtering!Mode}{Gamma Filter}
  3152. @keyword{filtering gamma}
  3153.  
  3154.  The Gamma filter performs gamma map filtering. Gamma filtering 
  3155.  is primarily used on radar data to remove high frequency noise
  3156.  (speckle) while preserving high frequency features (edges).
  3157.  
  3158.  The Gamma Map filter was first proposed by Kuan.  To apply it,
  3159.  the a priori knowledge of the probability density function of
  3160.  the scene is required.  The scene reflectivity was assumed to be
  3161.  Gaussian distributed.  However, this is not quite realistic since
  3162.  it implicitly assumes a negative reflectivity.  Lopes modified
  3163.  the Kuan Map filter by assuming a gamma distributed scene and
  3164.  setting up two thresholds.  
  3165.  
  3166.  The gamma filter size ranges from 1 to 11. Different filter sizes 
  3167.  will greatly affect the quality of processed images. If the 
  3168.  filter is too small, the noise filtering algorithm is not effective. 
  3169.  If the filter is too large, subtle details of the image will be 
  3170.  lost in the filtering process. A 7x7 filter usually gives the best results.
  3171.  
  3172.  The input text field for the number of look specifies the number of 
  3173.  looks of the radar image. This number used to calculate the noise variance. 
  3174.  The option menu allows the user to specify whether or not the Radar image 
  3175.  is in intensity format or amplitude format.
  3176.  
  3177.  GAMMA was based on the paper:
  3178.  
  3179.    A. Lopes, E. Nezry, R. Touzi, and H. Laur, "Structure detection
  3180.    and statistical adaptive speckle filtering in SAR images",
  3181.    International Journal of Remote Sensing, Vol. 14, No. 9,
  3182.    pp. 1735-1758, 1993.
  3183.  
  3184.  The GAMMA performs spatial filtering on each individual pixel in an
  3185.  image using the grey-level values in a square window
  3186.  surrounding each pixel.  The dimensions of the filter must be
  3187.  odd, and can be from 3x3 to 11x11 pixels.
  3188.  
  3189.  All pixels are filtered. In order to filter pixels located
  3190.  near edges of the image, edge-pixels are replicated to give
  3191.  sufficient data.
  3192.  
  3193.                 +----------+
  3194.                 | a1 a2 a3 |
  3195.                 | a4 a5 a6 |     <---  Filter window 3 X 3
  3196.                 | a7 a8 a9 |
  3197.                 +----------+
  3198.  
  3199.  
  3200.  Algorithm :
  3201.  
  3202.  The resulting grey-level value R for the smoothed pixel is:
  3203.  
  3204.                  R = I                    for Ci less than or equal to Cu
  3205.                  R = (B*I + SQRT(D))/(2*ALFA)  for Cu < Ci < Cmax
  3206.                  R = CP                   for Ci greater than or equal to Cmax
  3207.  
  3208.  where:
  3209.                  NLOOK = Number of Looks
  3210.                  VAR   = Variance in filter window
  3211.                  CP    = Centre pixel grep level value
  3212.                  I     = Mean grey level in the filter window
  3213.                  Cu    = 1/SQRT(NLOOK)
  3214.                  Ci    = SQRT(VAR) / I
  3215.                  Cmax  = SQRT(2)*Cu
  3216.                  ALFA  = (1+Cu**2)/(Ci**2-Cu**2)
  3217.                  B     = ALFA-NLOOK-1
  3218.                  D     = I*I*B*B+4*ALFA*NLOOK*I*CP
  3219.  
  3220.  
  3221.  For amplitude image, each grey-level will be squared and square
  3222.  root will be applied to the final result.
  3223.  This parameter is specified via the option menu: The user can
  3224.  either specify an amplitude image or an power (intensity) image.
  3225.  
  3226.  The NLOOK parameter is set via the Number of Looks input text field.
  3227.  
  3228.  In addition, this program uses a method as described in P.994 of the
  3229.  following paper:
  3230.  
  3231.    A. Lopes, R. Touzi, and E. Nezry, "Adaptive Speckle Filters and
  3232.    Scene Heterogeneity", IEEE Transactions on Geoscience and Remote
  3233.    Sensing, Vol 28, No. 6, November 1990.
  3234.  
  3235.  to remove isolated pixel (pixel of very high or very low value)
  3236.  in homogeneous area.
  3237.  
  3238.  PCI wishes to acknowledge the assistance of Ko B. Fung and Zhenghao Shi
  3239.  at Canada Centre for Remote Sensing for providing source code and
  3240.  assistance of their programs.  Special thank to Dr. R. Touzi from
  3241.  Canada Centre for Remote Sensing for his helpful suggestions and comment
  3242.  
  3243.  For more information about comparison of different radar filtering
  3244.  methods, please refer to the following papers:
  3245.  
  3246.    Zhenghao Shi and Ko B. Fung, 1994, A Comparison of Digital
  3247.    Speckle Filters, Proceedings of IGRASS 94, August 8-12, 1994.
  3248.  
  3249.  
  3250. 1    Movie
  3251. @index{Movie Loop}{Imagery!Movie}
  3252. @keyword{movie imagery loop}
  3253.  
  3254.  The Movie panel allows the user to display and control a set of
  3255.  image planes in the main ImageWorks window.  Either images in
  3256.  black and white mode or images in RGB mode can be displayed in a
  3257.  synchronized way. If only one image plane is specified when invoking
  3258.  ImageWorks, the user will not be allowed to use the Movie panel.
  3259.  
  3260.  The Movie panel can be launched by selecting "Movie Loop" from the
  3261.  "Tools" pulldown menu on the main ImageWorks window.  The movie
  3262.  panel contains different options settings at the top of the panel
  3263.  and a control section at the bottom.
  3264.  
  3265.  The top section of the Movie panel contains a scale to set the
  3266.  movie speed that can range from 0.1 to 35 frames per second.
  3267.  The scale has an increment of 0.1 from 0.1 to 0.9 frame per second, 
  3268.  and then an increment of 1 for other values.
  3269.  
  3270.  The user can set the movie speed by entering a value in the input
  3271.  text field located at the right side of the speed scale or by
  3272.  dragging the scale index.
  3273.  
  3274.  At the top of the speed scale, there is a display that is updated
  3275.  after each frame to indicate the actual number of frame per second.
  3276.  This display is only updated when the user has selected "Run".
  3277.  
  3278.  The middle scale (Frame Number scale) from the Movie panel is a
  3279.  reference to the image plane that is being displayed.  The user can
  3280.  specify a starting image plane by moving the scale to an
  3281.  appropriate position.
  3282.  In RGB mode, this scale will display the image plane number
  3283.  corresponding to the leftmost image plane as shown in the
  3284.  example below:
  3285.  
  3286.   image plane: 1  2  3  4  5  6  7  8
  3287.  
  3288.      Red                x
  3289.      Green           x
  3290.      Blue                  x
  3291.  
  3292.                       (Leftmost image plane 3, 
  3293.                        corresponds to Frame scale 3)
  3294.  
  3295.      where 'x' represents a selected colour gun.
  3296.  
  3297.  The Direction section allows the user to specify whether or not
  3298.  the movie will run in a forward or reverse direction.
  3299.  There is also a check box labelled "Continuous Loop" in the
  3300.  Direction section.  The "Continuous Loop" check box, when toggled on
  3301.  will run the movie continuously in the direction specified, i.e.,
  3302.  if we are working with 8 image planes in black and white mode, after 
  3303.  the last image plane has been reached (image plane 8), 
  3304.  the first image plane(1) will be redisplayed.
  3305.  
  3306.  The control section contains the "Run", "Stop", "Step" and "Previous"
  3307.  buttons. The following describes the control buttons:
  3308.  
  3309.  - "Run": The "Run" push button starts the movie at the image
  3310.    plane specified by the Frame Number scale.  Depending on the option
  3311.    chosen, if the "Continuous Loop" has not been toggled on, the
  3312.    movie will run up to the last image plane (if possible).
  3313.    Successive image plane(s) will be displayed at an interval specified
  3314.    by the speed scale (if possible).
  3315.  
  3316.  - "Stop": The "Stop" push button halts the movie.
  3317.  
  3318.  - "Step": The "Step" is used to step one 'frame' at a time.
  3319.    Depending on the direction selected, either the next or previous
  3320.    image plane(s) will be displayed.
  3321.  
  3322.  - "Previous": The "Previous" push button is used to display the
  3323.    previous image plane(s). Again depending on the direction selected,
  3324.    the appropriate previous/next image plane(s) will be displayed.
  3325.  
  3326.  Depending on whether or not the "Continuous Loop" mode is toggled on,
  3327.  the control buttons will automatically be turned on/off according
  3328.  to the frame number specified by the frame scale.
  3329.  
  3330.  To run the movie for displaying black and white images, select the
  3331.  black and white mode from the ImageWorks control window, and on the
  3332.  Movie panel move the scale index to the desired starting position.
  3333.  Press "Run" to start the movie.
  3334.  
  3335.  In the RGB mode, the user must select adjacent RGB guns.  That is,
  3336.  the RGB guns must be of a different image plane number and be one image
  3337.  plane apart (except for the left and rightmost ends).
  3338.  If the user sets the RGB guns to image plane numbers that are far apart,
  3339.  the movie will set the RGB guns to a default position where image
  3340.  plane 1, 2, and 3 will be set to the Red, Green, and Blue guns respectively.
  3341.  
  3342.  
  3343. 1    PCT Encoding
  3344. @index{PCT!Encoding}{Imagery!PCT Encoding}
  3345. @keyword{PCT encode encoding imagery}
  3346.  
  3347.  The PCT Encoding panel permits the user to `split' an image PCT into 
  3348.  3 image channels each containing the equivalent Red PCT, Green PCT 
  3349.  and Blue PCT.  The PCT encoding panel can be launched by selecting 
  3350.  "PCT to RGB" from the "Tools" pulldown menu on the main ImageWorks 
  3351.  window.
  3352.  
  3353.  The PCT Encoding panel contains option menus to specify an input image
  3354.  plane and three output image planes for the Red, Green, and Blue image.
  3355.  
  3356.  After selecting the appropriate input and output image planes,
  3357.  the user can press the "Apply" push button to perform the PCT 
  3358.  encoding.  The result of the encoding will automatically be displayed
  3359.  with the RGB guns set to the specified output image planes.
  3360.  
  3361.  
  3362. 1    Flicker
  3363. @keyword{flicker imagery}
  3364. @index{Flicker}{Imagery!Flicker}
  3365.  
  3366.  The Flicker panel allows the user to flip between two video states.
  3367.  
  3368.  A video state will record the following information:
  3369.  
  3370.  - Image Plane to Colour gun mapping.
  3371.  - Graphic plane mask.
  3372.  - PCT.
  3373.  - Video Mode (RGB/BW/PCT).
  3374.  - Cursor Colour.
  3375.  
  3376.  The Flicker panel can be launched by selecting "Flicker" from the
  3377.  "Tools" pulldown menu on the main ImageWorks window.  The flicker 
  3378.  panel contains different options settings at the top of the panel
  3379.  and a control section at the bottom.
  3380.  
  3381.  The top section of the flicker panel contains two radio buttons
  3382.  to specify and display a video state. 
  3383.  Once the flicker panel is displayed, all valid interaction to 
  3384.  the Control panel or to the Main ImageWorks window will be recorded.
  3385.  
  3386.  The next section of the Flicker panel contains a scale to set the
  3387.  video flicking speed, that can range from 0.1 to 35 frames per second.
  3388.  The scale has an increment of 0.1, from 0.1 to 0.9 frames per second, 
  3389.  and then an increment of 1 for higher values.
  3390.  
  3391.  The user can set the speed between two video states by entering 
  3392.  a value in the input text field located at the right side of the 
  3393.  speed scale or by dragging the scale index.
  3394.  
  3395.  At the top of the speed scale, there is a display that is updated
  3396.  after each frame to indicate the actual number of frames per second.
  3397.  This display is only updated when the user has selected "Run".
  3398.  
  3399.  The control section contains the "Run", "Stop", "Step", and "Previous"
  3400.  buttons. 
  3401.  
  3402.  - "Run":  Starts to flip between two video states.
  3403.  
  3404.  - "Stop":  Halts the flipping process.
  3405.  
  3406.  - "Step" or "Previous":  Displays the other video state.
  3407.  
  3408.  Example:
  3409.  
  3410.  To run the video state flicker, bring up the Flicker panel.
  3411.  
  3412.  - Set up your display in the main ImageWorks window as you would 
  3413.    like it to be for the "State 1". 
  3414.  - Select the "State 2" radio button from the Flicker panel. 
  3415.    From the Control Panel, set up a new display in the main ImageWorks
  3416.    window. The video display information is automatically recorded
  3417.    for State 2.
  3418.  - Press "Run" to start to flip between two video states.
  3419.  
  3420. 1    Transformation
  3421. @keyword{Rotate}{Scale}{Flip}{Transform}{Transformation}
  3422. @index{Image Transformation}{Transformation}
  3423.  
  3424.  The transformation panel is used to perform some simple transformations
  3425.  on the image pixels. These include flipping along a vertical axis, flipping
  3426.  along a horizontal axis, rotation about a point, rotation about the centre
  3427.  of the image, and scaling about a point.
  3428.  
  3429.  These transformations can only be done on one image plane at a time.
  3430.  The input and output planes are selected with option menus. It is
  3431.  possible to perform the transformation "in place" by selecting the
  3432.  input and output planes to be the same. Note that when this is done,
  3433.  the original data will be overwritten with the newly transformed image.
  3434.  
  3435.  The image window cursor plays an active role in determining how
  3436.  the transformation occurs. When flipping along a vertical axis, the
  3437.  flip is done along the line x = cursor x position. When flipping along
  3438.  a horizontal axis, the flip is done along the line y = cursor y position.
  3439.  Rotations and scalings are done about the point (cursor x position, 
  3440.  cursor y position). Rotations can also be performed about the centre of
  3441.  the image window.
  3442.  
  3443.  To perform a rotation about a point, select the angle by moving the slider.
  3444.  Exact rotation angles can also be entered directly into the textfield. 
  3445.  Position the cursor on the point you wish to act as the origin
  3446.  for the rotation. Pressing the "Rotate about cursor" button will perform the
  3447.  transformation.
  3448.  
  3449.  To perform a rotation about the centre, select the angle by moving the slider.
  3450.  Exact rotation angles can also be entered directly into the textfield. 
  3451.  Pressing the "Rotate about centre" button will perform the transformation.
  3452.  
  3453.  To perform a scaling, select the scaling factor by moving the slider.
  3454.  Note that this slider follows a logarithmic scale. The log scale applies
  3455.  to the slider only and is used to make it easier to select small and 
  3456.  large scaling factors. Exact scaling factors can also be entered directly 
  3457.  into the textfield. Position the cursor on the point you wish to act as 
  3458.  the origin for the scaling. Pressing the "Scale" button will perform 
  3459.  the transformation.
  3460.  
  3461.  To perform a flip along a vertical axis, position the cursor so that 
  3462.  its x position lies on the vertical axis. Pressing "Y Axis Flip"
  3463.  will perform the transformation.
  3464.  
  3465.  To perform a flip along a horizontal axis, position the cursor so that
  3466.  its y position lies on the horizontal axis. Pressing "X Axis Flip"
  3467.  will perform the transformation.
  3468.  
  3469. 1    Perspective
  3470. @keyword{Perspective}{3D}
  3471. @index{Perspective Scene Generation}
  3472.  
  3473.  NOTE: Perspective Scene Generation has been removed from ImageWorks in V6.0.
  3474.  
  3475.  The perspective panel is used to generate three-dimensional perspective
  3476.  scenes from elevation and colour data. 
  3477.  
  3478.  To generate a scene, eight image planes are required: four input and
  3479.  four output. The four input planes are used to specify an elevation model 
  3480.  as well as red, green, and blue colour information for each point in that
  3481.  model. The four output planes are used to output the generated scene into
  3482.  red, green, and blue channels. The last output plane is used to store
  3483.  a distance map. A distance map is an image that contains the distance of
  3484.  the viewer from each point in the perspective scene.
  3485.  
  3486.  There are three sections in the Perspective Scene Generation panel. The
  3487.  "Parameters" section is used to specify the viewing geometry parameters.
  3488.  The "Channels" section is used to specify which channels will be used
  3489.  as the eight input and output channels. The "Options" section is used to 
  3490.  specify additional scene generation parameters that can be used
  3491.  to enhance the image.
  3492.  
  3493.  At the bottom of the panel are the action buttons. The "Generate" button
  3494.  is used to perform the perspective scene generation. The "Close" button
  3495.  pops down the panel. The "Help" button displays this help.
  3496.  
  3497. 2     Parameters
  3498. @index{Perspective Scene Generation!Parameters}
  3499.  
  3500.  The viewing parameters essentially specify where in three-dimensional
  3501.  space the viewer is positioned and where he is looking. The field of view
  3502.  specifies how wide the viewing cone is. In this diagram, point a is the view
  3503.  from position, point b is the view at position and the field of view is
  3504.  the angle between the two diagonal lines.
  3505.  
  3506. @verbatim
  3507.     ------b------  
  3508.     \     ^     /  
  3509.      \    |    /    
  3510.       \   |   /    
  3511.        \  |  /     
  3512.         \ | /      
  3513.          \|/       
  3514.       a
  3515. @end
  3516.  
  3517.  The view from position is the position in the image that the viewer
  3518.  is viewing from. It is specified in pixel/line coordinates. It can only be 
  3519.  set by using the "Set From Cursor" button. Pressing this button
  3520.  sets the view from position to the current position of the cursor in the 
  3521.  image window.
  3522.  
  3523.  The view from elevation specifies how high the viewer is looking from.
  3524.  The units used should be the same as those used for the channel specified 
  3525.  by the "Elevation" option menu. There are two ways to set this value. 
  3526.  It can be entered directly into the textfield, or the 
  3527.  "Set From Elevation" button will set the elevation. The data value used is
  3528.  the value at the current cursor position in the plane specified by the 
  3529.  "Elevation" option. 
  3530.  
  3531.  The view at position and view at elevation controls are similar to the
  3532.  view from controls except they are used to specify where the viewer is
  3533.  looking.
  3534.  
  3535.  HINT: The rendering algorithm renders the scene with the view at position
  3536.  at the bottom of the generated image. To get best results, set the
  3537.  view from elevation higher than the view at elevation so that the
  3538.  viewer is looking down.
  3539.  
  3540.  The "Field of View" textfield is used to specify how wide the view
  3541.  cone should be. This value is given in degrees. 
  3542.  
  3543.  The following diagrams explain how varying the look at point along a 
  3544.  line of sight can be used to change the rendering plane (RP).
  3545.  
  3546. @verbatim
  3547.    |------b------| RP                 
  3548.     \     ^     /                     
  3549.      \    |    /                       
  3550.       \   |   /          |---b---| RP
  3551.        \  |  /            \  ^  /     
  3552.         \ | /              \ | /      
  3553.          \|/                \|/       
  3554.       a                 a
  3555. @end
  3556.  
  3557.  The rendering plane represents a "window" which is used to generated
  3558.  the three dimensional scene. Everything in the image database that is in 
  3559.  front of the rendering plane (i.e. on the same side as the view from 
  3560.  position a) will not be included in the generated scene. The rendered scene 
  3561.  will contain only the image database behind the rendering plane as 
  3562.  projected on the rendering plane. Also keep in mind that the larger the
  3563.  field of view angle, the wider the rendering plane will be.
  3564.  
  3565. 2    Channels
  3566. @index{Perspective Scene Generation!Channels}
  3567.  
  3568.  There are option menus to specify which channels in the image database
  3569.  correspond to the four input and four output channels. 
  3570.  
  3571.  The elevation and distance map channels must be 32-bit real. If these
  3572.  channels are 8-bit, a panel will pop up when generating the perspective
  3573.  scene, allowing the user to convert the planes to 32-bit real.
  3574.  
  3575.  The input and output colour channels must be 8-bit. 
  3576.  
  3577.  All of the output planes must be unique and cannot be set to any of 
  3578.  the input planes. This is required to ensure that writing the generated
  3579.  scene does not cause any existing planes to be overwritten 
  3580.  improperly.
  3581.  
  3582. 2    Options
  3583. @index{Perspective Scene Generation!Options}
  3584.  
  3585.  The height magnification is used as a stretching factor to magnify the 
  3586.  elevation values. Essentially, all of the values in the elevation channel
  3587.  are multiplied by this factor when generating the perspective scene.
  3588.  
  3589.  Bilinear interpolation is an option used to specify how to interpret
  3590.  the data in the input colour planes. When this option is on, the colour
  3591.  at a particular point in the database is interpolated from the data in
  3592.  the surrounding pixels. This feature provides a smoothing effect. 
  3593.  When this option is off, the colour of a particular point is the colour
  3594.  of the pixel in which that point falls. In the rendered image, each
  3595.  database pixel will look very distinct.
  3596.  
  3597.  The background colour is used for any part of the scene that did
  3598.  not contain the terrain. The edge colour is used for parts of the
  3599.  scene that represent the sides of the terrain. Keep in mind that these
  3600.  colours are the raw data and will not look the same in the image window 
  3601.  if the output image planes have lookup tables.
  3602.  
  3603. 2    Example
  3604. @index{Perspective Scene Generation!Example}
  3605.  
  3606.  As an example using Perspective Scene Generation, start up an ImageWorks
  3607.  sessions with 8 channels.  Convert Channel 4 into a 32-bit channel.  This 
  3608.  can be accomplished using the Image Info panel, which is accessible under 
  3609.  View->Image Info...  Select Open File and select irvine.pix as your file 
  3610.  (typically under /pci/demo).  Load channels 3,2,1,10 from the database into 
  3611.  channels 1,2,3,4 in ImageWorks.
  3612.  
  3613.  Enter the following parameters into the Perspective Scene Panel.  Note that 
  3614.  negative Cursor positions may be entered via the Cursor Control panel.
  3615.  
  3616.   View From (X,Y): -250,750
  3617.   View From Elev : 350
  3618.   View at   (X,Y): 91,423
  3619.   View at Elev   : 50
  3620.   Field of View  : 55
  3621.   Height Magnification: 3.3
  3622.  
  3623.  Click on Generate.
  3624.  
  3625.  View the output channels 5,6,7.
  3626.  
  3627. 1    Print 
  3628. @keyword{PostScript}{Printing}{Screen Dump}
  3629. @index{Print}
  3630.  
  3631.  NOTE: This section is not applicable to the MacOS.
  3632.  
  3633.  The Print panel allows the user to capture the contents of the main 
  3634.  ImageWorks window. The Print panel will create a PostScript file
  3635.  which can then be sent to a PostScript printer to obtain a hardcopy
  3636.  of the main ImageWorks window.
  3637.  
  3638.  The Print panel can be launched by selecting "Print" from the "File" 
  3639.  pulldown menu on the main ImageWorks window.  The Print panel contains 
  3640.  an input text field to specify the name of the PostScript file that 
  3641.  will be created. 
  3642.  
  3643.  The number of copies can be specified in the Copies input text field.
  3644.  There is a DPI (dots per inch) text field that will allow the user to 
  3645.  specify the quality of the output.
  3646.  To obtain a certain output quality, the user must select Actual 
  3647.  Size option and specify a DPI value that can be handled by the printer 
  3648.  from which the PostScript file will be printed.
  3649.  
  3650.  The Colour option menu is used to allow the user to specify whether or 
  3651.  not to create a colour output PostScript file.  When Colour is set to
  3652.  color, a colour PostScript output will be created,
  3653.  otherwise, BW specifies the output will be in black and white.  
  3654.  If the contents of the main ImageWorks window is in colour and the
  3655.  color option is not selected, then a black and white output will be
  3656.  generated where the RGB values of each pixel are averaged to obtain
  3657.  a greyscale image.
  3658.  
  3659.  The next section contains layout options. By default, the paper
  3660.  Width and Height dimensions are set to 8.5 by 11.0 inches respectively. 
  3661.  The user can edit the paper size values or select different units 
  3662.  (inches or cm)
  3663.  specified by the "Units" option menu.
  3664.  The image will always be placed at the centre of the page and the
  3665.  paper dimensions must be wide enough for the specified image.
  3666.  
  3667.  The Orientation option menu allows the user to specify whether or
  3668.  not a Portrait (upright) or Landscape (sideways) output is required.
  3669.  
  3670.  The Scale to option menu allows the user to specify whether
  3671.  the output image is to be scaled in order to have a maximum fit in the 
  3672.  specified paper size, or the actual image size is to be used.
  3673.  If the Maximum Size option is selected, the image will be enlarged
  3674.  to fit in the specified page but will lose some image quality.
  3675.  Image scaling can also be achieved by changing the DPI value.
  3676.   
  3677.  The "Print To File" push button creates a PostScript file of the image 
  3678.  displayed in the main ImageWorks window according to the specified 
  3679.  print options. 
  3680.  
  3681.  NOTE: The Print panel captures the contents of the main ImageWorks window.
  3682.  It is recommended that the main ImageWorks window be brought to the 
  3683.  foreground (not overlapped by other windows); it must not go off the edge 
  3684.  of the screen. 
  3685.  The size of the image to be printed depends on the size of the ImageWorks 
  3686.  window size.(Maximum size will be the size of your computer screen)
  3687.  To capture only a portion of an image, resize the ImageWorks window 
  3688.  appropriately or load in a subwindow of the image.
  3689.  
  3690. 1    Rasterization
  3691. @index{Vectors!Rasterization}{Rasterization}{Imagery!Burning in Vectors}
  3692. @index{Graphics!Burning in Vectors}
  3693. @keyword{Rasterization Vectors Burning Polygon Line Fill}
  3694.  
  3695.  The Rasterization panel allows the user to burn or encode lines
  3696.  and polygons into image or graphic raster layers.  Contour lines can be
  3697.  converted to a DEM (in combination with interpolation in the DEM Editing 
  3698.  panel); geopolitical boundaries can be converted to raster mask layers. 
  3699.  
  3700.  The topmost region of the Rasterization panel contains a list of potential
  3701.  source vector layers.  One of these vector layers should be selected as 
  3702.  the source by clicking on it.  The selected layer will appear highlighted.
  3703.  
  3704.  Below this is the destination raster layer list.  This is a list of all the
  3705.  image and graphic planes available to burn the result into.  The
  3706.  image planes are all prefixed with "I" and graphic bitplanes are prefixed
  3707.  with "B".  The selected layer will appear highlighted.
  3708.  
  3709.  At the bottom of the panel are the radio buttons used to select the
  3710.  rasterization algorithm.  The first algorithm, Edges Only, is used to burn
  3711.  lines into the raster layer.   When burned into an image, they are assigned
  3712.  image values based on the attribute of the vector. 
  3713.  
  3714.  The second algorithm is used to encode polygons into the raster layer.  In
  3715.  this case the polygon is burned into the raster layer based on the attribute
  3716.  of a seed point.  Each point structure is assumed to be an interior point
  3717.  of a polygon to be flood filled.  The polygon boundaries are the nearest
  3718.  vector lines in any direction.  The bounding line(s) need to enclose the
  3719.  seed point, but the boundary does not need to be a single vector polyline
  3720.  structure.  If more than one seed point appears in a polygon, it is random
  3721.  which value the polygon will be flooded with.
  3722.  
  3723.  The third algorithm, Polygons (Closed Lines), is based on a scanline 
  3724.  rasterization algorithm.  In this case a polygon is determined to be a 
  3725.  single vector structure with three or more points, where the first and
  3726.  last vertices are at the same location.  The polygon is filled with the
  3727.  attribute of the bounding line.  Point structures and lines that do not
  3728.  form closed polygons are ignored.
  3729.  
  3730.  The fourth algorithm, Natural Neighbor Interpol., is based on the
  3731.  algorithm developed by Professor Robin Sibson, [Sibson 1980]. It is a
  3732.  coordinate that can have more than one reference point. It is
  3733.  measured by the ratio of the area associated with one of the
  3734.  reference points. Further details can be found in "A vector identity
  3735.  for the Dirichlet tesselation: Math Proc. Cambridge Phil. Soc., 87".
  3736.  
  3737.  When a source vector layer, destination raster layer, and algorithm have
  3738.  been selected, the rasterization can be triggered by hitting the Rasterize
  3739.  button at the bottom of the panel.
  3740.  
  3741.  Vector attributes can be previewed in the Vector Editor, and values
  3742.  outside the range 0-255 will be clipped into this range if the output layer
  3743.  is an eight bit image plane.  Polygons burned into bitmap layers always
  3744.  set the bits to on, regardless of the attribute for the polygon.  The 
  3745.  operations done by this panel are similar to the functions of the PACE
  3746.  programs GRDVEC and GRDPOL.
  3747.  
  3748.  See Also: {|}DEM Editing, {|}Vector Editing
  3749.  
  3750. 1    Modelling
  3751. @keyword{Imagery!Modelling}{Modelling}{EASI+}
  3752. @index{Modelling}
  3753.  
  3754.  The EASI Modelling command window is used to enter modelling equations to
  3755.  be applied to the ImageWorks image planes.  The modelling equation 
  3756.  formats are similar, though less powerful than those found in the
  3757.  MODEL PACE program.  This window may be launched from the "Modelling" 
  3758.  entry in the ImageWorks "Tools" pulldown menu.
  3759.  
  3760.  The Modelling panel allows the user to compose modelling equations, or
  3761.  modelling procedures in a simple editor window, and then run them using 
  3762.  the "Run" button.  As well, the model editor can be cleared with the 
  3763.  "Clear" button.
  3764.  
  3765.  The "Load" and "Save" buttons can be used to load the procedure editor
  3766.  from a text file, and to save the contents of the procedure editor to a text
  3767.  file.
  3768.  
  3769.  The following subtopics describe how to form simple modelling equations,
  3770.  and a little about other capabilities of the ImageWorks EASI command 
  3771.  interface.
  3772.  
  3773. 2    Simple Image Modelling
  3774. @index{Modelling!Simple Image}
  3775.  
  3776.  Modelling equations in their simplest form are arithmetic combinations
  3777.  of image planes assigned to an image plane.  Image planes are indicated
  3778.  by a percent sign followed by the image plane number.  The following 
  3779.  equation assigns the average value of image planes one and two to
  3780.  image plane three.  
  3781.  
  3782.    %3 = (%1 + %2)/2
  3783.  
  3784.  The assignment is evaluated for every pixel in image plane three, using
  3785.  the corresponding pixel values from image planes one and two.  Another
  3786.  trivial example simply initializes an entire image plane to a constant
  3787.  value.
  3788.  
  3789.    %1 = 255
  3790.  
  3791.  The standard set of arithmetic operations are available in modelling
  3792.  expressions.  They are listed below with a short description.
  3793.  
  3794. @verbatim
  3795.    a + b        Addition
  3796.    a - b        Subtraction
  3797.    a * b            Multiplication
  3798.    a / b            Division
  3799.    a ^ b        Exponentiation
  3800.    ( a )        Parentheses, also square brackets [].
  3801.    - a            Unary negation    
  3802. @end
  3803.  
  3804.  A wide set of mathematical intrinsic functions is also available,
  3805.  including the sin(), cos(), tan(), asin(), acos(), atan(), ln(),
  3806.  log10(), exp(), exp10(), rad(), deg(), abs(), int(), random() and frac() 
  3807.  functions.
  3808.  
  3809.  For more detailed information, the EASI manual may be consulted.  The
  3810.  main difference between modelling in EASI and modelling in ImageWorks is
  3811.  that the ImageWorks image planes are the default "database" when
  3812.  using modelling in ImageWorks.
  3813.  
  3814.  See Also: {EASI|expre|mod}EASI Modelling Expressions,
  3815.            {EASI|func|calc}EASI Calculator Functions
  3816.  
  3817. 2    Modelling Logic
  3818. @index{Modelling!Modelling Logic}
  3819.  
  3820.  In addition to simple assignment equations, it is also possible to
  3821.  construct simple logical operations in the Modelling command window.
  3822.  These operations take the form of "if" statements.
  3823.  
  3824.  For example, the following command would set the value of image plane
  3825.  two to 255 anywhere the image value of image plane one is between
  3826.  32 and 64.  Note that line breaks are significant.  Each statement must
  3827.  be on its own line.
  3828.  
  3829.    if ( %1 >= 32 AND %1 <= 64 ) then
  3830.      %2 = 255 
  3831.    endif
  3832.  
  3833.  This more complex example shows a procedure to produce an overlay in 
  3834.  graphic plane 2 (%%2) for every pixel where image planes 1, 2 and 3 all are
  3835.  equal to 255.
  3836.  
  3837.   if (%1 = 255) and (%2 = 255) and (%3 = 255) then
  3838.     %%2 = 1
  3839.   else
  3840.     %%2 = 0
  3841.   endif
  3842.  
  3843.  The possible comparison, and logical functions are:
  3844.  
  3845.    a > b    a greater than b
  3846.    a < b    a less than b
  3847.    a = b    a equals b
  3848.    a <> b    a not equal b    
  3849.    a <= b    a less than or equal b
  3850.    a >= b    a greater than or equal b
  3851.    a OR b    a is true or b is true
  3852.    a AND b    a is true and b is true
  3853.    !a        a is not true
  3854.  
  3855.  It is also possible to use brackets to ensure operations take place
  3856.  in the expected order.
  3857.  
  3858. 2    EASI
  3859. @index{Modelling!EASI}
  3860.  
  3861.  The EASI command window in ImageWorks is primarily intended
  3862.  to serve as a method of performing modelling; however, all EASI 
  3863.  commands are available via the EASI command window.  
  3864.  
  3865.  The EASI Reference Manual may be consulted for full information on 
  3866.  the EASI command language.  There are some considerations when using
  3867.  EASI commands in ImageWorks.
  3868.  
  3869.  - For the purpose of modelling, the default database in ImageWorks is
  3870.    always the ImageWorks image planes. 
  3871.  
  3872.  - No PACE programs which access the display should be run, unless 
  3873.    a different ImageWorks or Handler is being accessed.  Otherwise
  3874.    both processes will "lock up".
  3875.  
  3876.  - Only command input comes from the ImageWorks command window.  All 
  3877.    other input and output will be directed to the command window from
  3878.    which ImageWorks was launched.
  3879.  
  3880.  Also note that it is possible to add EASI Procedures as menu items in
  3881.  ImageWorks using the ``Menu:'' entry in the ImageWorks preference file.
  3882.  
  3883.  See Also: EASI, {|Preferences|}Adding Menu Items
  3884.  
  3885. 1    ERRORS
  3886.  
  3887. 2    No Graphic Planes Available
  3888.  
  3889.  There are no graphic planes in the current ImageWorks configuration,
  3890.  so Graphic Editing is not possible.  The Configuration Panel or VDINIT
  3891.  must be used to enable graphic operations at startup time.
  3892.  
  3893.  See Also: VDINIT, {..|..|Config}Configuration Panel
  3894.  
  3895. 1    Spectral Plot
  3896. @keyword{Spectral Plot Hyperspectral Spectroscopy}
  3897. @index{Spectral Plot}
  3898.  
  3899.  The Spectral Plot panel is primarily designed to graph hyperspectral image 
  3900.  data from an image file or from a spectral library. Image data can be stored
  3901.  in any PCI supported file format, and libraries are stored using the USGS
  3902.  spectral library format.  For example:
  3903.  
  3904.  - AVIRIS (Airborne Visible/Infrared Imaging Spectrometer) imagery is
  3905.    distributed by USGS using BIL format with a VICAR header.
  3906.  - CASI (Compact Airborne Spectrographic Imager) imagery is distributed by
  3907.    ITRES using PCIDSK database format.  ITRES encodes wavelengths and
  3908.    bandwidths in the PCIDSK channel descriptors.
  3909.  
  3910.  This panel allows graphing specific coordinates in a hyperspectral
  3911.  image where the channel number or wavelength is the independent variable.
  3912.  There are two parts to the spectral plot: a main panel and a graph. 
  3913.  The main spectral plotting panel allows control over graphing options,
  3914.  plotting ranges and spectra selection. The spectral graph panel shows
  3915.  the actual spectral plots.
  3916.  
  3917.  There are five major areas in the spectral plotting panel. The library
  3918.  area is used to select a spectral library. The "Displayed Spectra" section
  3919.  is used to choose spectra to plot, either from the library or from the
  3920.  imagery. The "Graph options" are used to control axis labelling and other
  3921.  plotting options. The "Hyperspectral Image" section is used to specify
  3922.  which image channels correspond to the full spectral image. The "Plotting 
  3923.  Ranges" area is used to determine axis scaling of the spectral graph.
  3924.  At the bottom of the panel are four action buttons, "Close", "Clear Plots",
  3925.  "Save Spectrum...", and "Help".
  3926.  
  3927.  Initially no library is selected, no spectra are selected, and thus the
  3928.  graph is empty.
  3929.  
  3930. 2    Spectral Graph
  3931. @index{Spectral Plot!Spectral Graph}
  3932.  
  3933.  The spectral graph is a separate panel that only contains the graph.
  3934.  There are no controls on the panel and the only way to pop it down
  3935.  is to pop down the main spectral plot panel. 
  3936.  The graph is resizable, and resizing the window also
  3937.  resizes the drawn graph within it.
  3938.  
  3939.  As the cursor is moved inside the spectral graph, a vertical bar is
  3940.  drawn at the current graph position.  Inside the main spectral plotting
  3941.  panel, four values are printed for the current position indicated in the
  3942.  spectral graph by the vertical bar:
  3943.  
  3944.  - Displayed spectrum number
  3945.  - Channel (band) number
  3946.  - Wavelength (in micrometres)
  3947.  - Intensity value or digital number (DN)
  3948.  
  3949. 2    Spectral Library
  3950. @index{Spectral Plot!Spectral Library}
  3951.  
  3952.  When the "Select Spectral Library..." button is pressed, a file selector
  3953.  is popped up to allow selection of a spectral library file. If the file 
  3954.  selected is not in USGS spectral library format, a warning will pop up to 
  3955.  indicate this. After a valid library is selected, it will be scanned for 
  3956.  spectral records. The 40 character titles of these records will be presented
  3957.  in the list box for selection. This list box is used in close conjunction
  3958.  with the displayed spectra section.
  3959.  
  3960.  See Also: {..|}Displayed Spectra, {..|}Valid Spectral Library
  3961.  
  3962. 2    Displayed Spectra
  3963. @index{Spectral Plot!Displayed Spectra}
  3964.  
  3965.  The displayed spectra section is used to show which spectra have been chosen
  3966.  to be plotted. There are 16 available "slots" and each has a separate colour.
  3967.  The slot colour corresponds to the colour used to draw that spectra in
  3968.  the graph.
  3969.  
  3970.  There will always be one slot that is pushed in. This is the active slot.
  3971.  All operations on the panel that deal with specific spectra are performed
  3972.  on this currently selected slot. Only one slot can be active at once and 
  3973.  initially the first slot is selected.
  3974.  
  3975.  To plot a record from the spectral library, select that record from the
  3976.  spectral library list box. After doing this, the currently selected slot
  3977.  is automatically advanced.
  3978.  
  3979.  To plot image data, position the image window cursor on the desired pixel 
  3980.  location and press "From Image". Data for that location in the 
  3981.  selected file will be plotted. Image data cannot be selected if a file
  3982.  has not been opened. Data is read directly from the disk file,
  3983.  not from the channels that imageworks has loaded. When an image pixel is 
  3984.  the currently selected item and the cursor moves in the image window,
  3985.  the graph is updated as the position changes. Also, the data that is
  3986.  plotted is affected by the "Window Size Around Cursor" option menu in
  3987.  the "Graph Options" area. 
  3988.  
  3989.  Any slot can be used to plot spectral library or image data.
  3990.  
  3991.  Once data is loaded into a slot, it will not change. The two exceptions
  3992.  are when the slot refers to an image pixel and the window size changes
  3993.  or the image window cursor is moved. For example, if the image pixel
  3994.  refers to pixel (257, 257) and a new file is loaded in, the data will
  3995.  still refer to the old file and will not automatically load pixel (257, 257)
  3996.  from the new file. Another example is that after a spectral library record 
  3997.  is chosen, if another library is opened, the slot will still hold the
  3998.  data from the previous library.
  3999.  
  4000.  The slot can be cleared by pressing "Clear Item". To change the colour
  4001.  used for a particular slot, press "Edit Colour...". A standard colour
  4002.  mixer can then be used to modify the slot colour.
  4003.  
  4004.  See Also: {..|}Graph Options
  4005.  
  4006. 2    Graph Options
  4007. @index{Spectral Plot!Graph Options}
  4008.  
  4009.  This option affects the manner in which the x axis is labelled as well 
  4010.  as the title of the graph. The "X Axis Labelling" option menu allows 
  4011.  the x axis to show either the channel number or the wavelength 
  4012.  (in micrometres). If wavelength is chosen, then:
  4013.  
  4014.  - wavelengths are read from the channel descriptors in the PCIDSK file, OR
  4015.  - wavelengths are read from a USGS spectral library record.
  4016.  
  4017.  If there are no wavelengths available, the X axis will not be annotated.
  4018.  
  4019.  When a spectral library file is opened, the first wavelength record in the
  4020.  library file is used to define the wavelengths for each channel in the
  4021.  displayed image. If there is more than one wavelength record in the library
  4022.  (this is rare), this option menu can be used to change the wavelength record.
  4023.  
  4024.  The average of the data values in a square window around the display
  4025.  cursor can be plotted. This means that for every channel, the data values
  4026.  in the window are averaged and this is the value that gets plotted. 
  4027.  The window size is selected with the "Window Size Around Cursor" option menu. 
  4028.  This option menu is only effective when the currently selected slot is
  4029.  an image pixel. It will not retroactively alter all slots that are image
  4030.  pixels to use the window size.
  4031.  
  4032. 2    Hyperspectral Image
  4033. @index{Spectral Plot!Hyperspectral Image}
  4034.  
  4035.  The channel first and last textfields are used to specify which channels
  4036.  in the imagery correspond to the full range of the spectral library records.
  4037.  For example, an AVIRIS file may have 448 channels, with channels 1-224
  4038.  representing one scene, and channels 225-448 representing another. To
  4039.  properly choose the second scene, the first and last channels would
  4040.  be set to 225 and 448 respectively. Suppose that the spectral library
  4041.  had 204 channels. Then channel 1 of the spectral library would correspond
  4042.  to channel 225 in the image, and channel 204 of the library would
  4043.  correspond to channel 448 of the image.
  4044.  
  4045.  The first channel must be equal to or greater than 1. The last channel
  4046.  must be equal to or less than the number of channels in the currently
  4047.  opened file. When a new file is opened, the first and last channels
  4048.  may be readjusted accordingly.
  4049.  
  4050. 2    Plotting Ranges
  4051. @index{Spectral Plot!Plotting Ranges}
  4052.  
  4053.  There are several plotting ranges to consider. The channel (wavelength)
  4054.  min and max determine which channels (wavelengths) should be
  4055.  plotted. (Either channel number or wavelength is entered, depending on
  4056.  current X-Axis Labelling). This affects the horizontal scaling of the graph.
  4057.  The library min and max determine the scaling of library spectra.
  4058.  The image min and max determine the scaling of image data. 
  4059.  
  4060.  Whereas the first and last channel define which channels in the imagery
  4061.  correspond to a full range in the spectral library, the channel min
  4062.  and max specify which part of the full range to graph. The channel min and 
  4063.  max are bounded by the first and last channel values in the "Hyperspectral 
  4064.  Image" area. In other words, the channel min (or the first channel to plot) 
  4065.  and channel max (or the last channel to plot) must be within the range 
  4066.  [channel first, channel last].
  4067.  
  4068.  Library spectra usually contain normalized values. It is real data and a 
  4069.  typical range is [0.0, 1.0]. The image data is often 16-bit signed 
  4070.  raw data. This is why two independent vertical scalings are needed. The 
  4071.  library spectra scale is drawn on the left side of the graph. The image 
  4072.  scale is drawn on the right side of the graph.
  4073.  
  4074. 2    Actions Buttons
  4075. @index{Spectral Plot!Actions Buttons}
  4076.  
  4077.  The "Close" button closes the spectral plotting panel as well as the graph.
  4078.  
  4079.  The "Clear Plots" button clears all the slots in the "Displayed Spectra" 
  4080.  section but leaves other options unchanged.
  4081.  
  4082.  The "Save Spectrum..." button pops up a panel which enables the saving of
  4083.  a spectrum into a spectral library.
  4084.  
  4085.  The "Help" button displays help for the Spectral Plotting panel.
  4086.  
  4087.  See Also: {..|}Save Spectrum
  4088.  
  4089. 2    Save Spectrum
  4090. @index{Spectral Plot!Save Spectrum}
  4091.  
  4092.  First, a library must be selected by using "Select Spectral Library...".
  4093.  The history and title text are used when writing the record into the
  4094.  library. Only the first 74 characters of history are used. Only the
  4095.  first 40 characters of the title are used. A new record is always 
  4096.  appended to the end of the selected library. If the library doesn't 
  4097.  exist, a new one is created. If wavelength and bandwidth values have been
  4098.  read from PCIDSK channel descriptors when plotting image spectra, these
  4099.  values are saved in the first two spectral records on the new library file.
  4100.  
  4101.  Pressing "Save" saves the currently
  4102.  selected spectrum into the spectral library. If the currently selected
  4103.  spectrum is empty, a warning is popped up and nothing will be saved.
  4104.  
  4105.  The "Close" button pops down the panel. The "Help" button displays this help.
  4106.  
  4107. 2    Valid Spectral Library
  4108. @index{Spectral Plot!Valid Spectral Library}
  4109.  
  4110.  A USGS Spectral Library file is composed of 1536 byte records. Record 1
  4111.  starts at byte 1536, not byte 0. The first 1536 bytes of the file are 
  4112.  set to 0 and are unused. If the first 1536 bytes of a file are 0s, it is 
  4113.  considered a valid spectral library.
  4114.  
  4115. 1    ImageWorks EASI/PACE Interaction
  4116. @index{EASI/PACE ImageWorks Interaction}
  4117.  
  4118.  This chapter provides information on starting ImageWorks from EASI/PACE 
  4119.  using VDINIT, and on the interaction between the 2 interfaces.
  4120.  
  4121. 2    VDINIT Interaction
  4122. @index{VDINTI ImageWorks Interaction}
  4123.  
  4124.  The interaction between the ImageWorks program and the parameter file, 
  4125.  which contains ImageWorks' size, type, and system information, is fairly 
  4126.  complex, as is ImageWorks itself. To simplify this interaction, an EASI 
  4127.  procedure, called VDINIT, is available. VDINIT handles all parameter file 
  4128.  interaction and starts an ImageWorks program in background mode when a 
  4129.  new display window is started.
  4130.  
  4131.  The VDINIT procedure is run from within EASI:
  4132.  
  4133.    EASI> run vdinit 
  4134.  
  4135.  When run, VDINIT produces a menu in the terminal window, so it should be 
  4136.  ensured that the text window is at least 80 columns by 25 lines. VDINIT gives 
  4137.  a selection of four displays (or devices), numbered 0, 1, 2, and 3. Each 
  4138.  display 
  4139.  is considered a separate device, having a name and window size. Information, 
  4140.  such as size and number of image and graphic channels on the currently 
  4141.  selected display, is shown. 
  4142.  
  4143.  A display can be selected using the options 0, 1, 2, or 3. The size and number
  4144.  of channels of the selected display window can be changed using the modify 
  4145.  (M) option. The window is actually created using the start (S) option for an 
  4146.  (optional) ImageWorks window. VDINIT can be exited using the exit (X) 
  4147.  option. The rest of the PACE package will now automatically use this display 
  4148.  window. 
  4149.  
  4150.  ImageWorks display windows can be dragged, exited, and opened like regular 
  4151.  windows. They can be resized up to as large as the underlying data size.
  4152.  
  4153.  Multiple ImageWorks display windows can be created and used. To do this, 
  4154.  the user should run VDINIT, select a display (0, 1, 2, or 3) and initialize 
  4155.  it, 
  4156.  creating the first display window. The user should then select a second, 
  4157.  different display and initialize it, creating a second display window. VDINIT 
  4158.  can now be exited. PACE programs will automatically use the last selected 
  4159.  display. To change the display which is being used, the user should run 
  4160.  VDINIT, select the desired display, then exit VDINIT. Note: Do NOT attempt 
  4161.  to reinitialize this selected display since this will create a new, third 
  4162.  window, 
  4163.  and use of the original selected window will be permanently lost to PACE 
  4164.  programs. 
  4165.  
  4166.  Unfortunately, there are some problems to watch out for when using multiple 
  4167.  displays. Each ImageWorks display window uses up quite a bit of memory. If 
  4168.  too many are created, if they are large, or if they have many channels, the 
  4169.  workstation may not be able to allocate enough memory and the initialization 
  4170.  of the new display window will fail. Even if the creation does not fail, the 
  4171.  resulting paging of the workstation's virtual memory may mean performance 
  4172.  will be unacceptable. 
  4173.  
  4174. 2    Parameter File Interaction
  4175. @index{Parameter File Interaction}
  4176.  
  4177.  This section discusses the interaction between an ImageWorks utility program 
  4178.  and the parameter file. It is included for background information. Most users 
  4179.  are insulated from knowing details at this level by using the VDINIT 
  4180.  procedure.
  4181.  
  4182.  Upon start-up, the ImageWorks program extracts information from the 
  4183.  parameter file which determines ImageWorks' size and labelling. This 
  4184.  information is held in the parameters named vdn: and vdn# where n is a number 
  4185.  between 0 and 3 (vd0:, vd0#,..., vd3:, vd3#). Each vdn: and vdn# pair defines 
  4186.  characteristics about the image display window n.
  4187.  
  4188.  vdn: is a character parameter which holds a 1 to 40 character string used to 
  4189.  label the ImageWorks window. Usually this is set as follows:
  4190.  
  4191.    vdn: = "VDn:"
  4192.  
  4193.  vdn# is a numeric parameter which holds 16 values defining the ImageWorks 
  4194.  display window characteristics, as follows:
  4195.  
  4196.    vdn#(1) = 19            Display type (Must be 19)
  4197.    vdn#(2) = X            Pixels per line (32 to 20480)
  4198.    vdn#(3) = Y            Lines per image (32 to 20480)
  4199.    vdn#(4) = 3            Number of image planes   (must be 1 to 16)
  4200.    vdn#(5) = 8            Number of graphic planes (must be 0 to 16)
  4201.    vdn#(6) = 0            Reserved for internal use
  4202.    vdn#(7) = 0            Reserved for internal use
  4203.    vdn#(8) = 0            Reserved for internal use
  4204.    vdn#(9) = 0/1        Suppresses popping up of configuration panel
  4205.       :
  4206.       :
  4207.    vdn#(14) = 0            Reserved for internal use 
  4208.    vdn#(15) = WX        Window size X (0 or less than vdn#(2))
  4209.    vdn#(16) = WY        Window size Y (0 or less than vdn#(3))
  4210.  
  4211.  The parameter vd00 is used to point to the currently selected display.
  4212.  
  4213.    vd00="VD1:"
  4214.  
  4215.  When the ImageWorks program is run, it reads in the current value of the vd00 
  4216.  parameter. Using this name, it reads in the appropriate vdn# parameter values,
  4217.  which define the image display window size, and uses the contents of the vdn: 
  4218.  parameter to label the window. The ImageWorks program then updates 
  4219.  positions 12 and 13 of vdn# with its socket number and process id (PID) 
  4220.  number. PACE application programs can now access the image display 
  4221.  window by following the vd00 link to the appropriate vdn# parameter and 
  4222.  retrieving the socket number. 
  4223.  
  4224.  For example, using EASI (under X-11 Motif): 
  4225.  
  4226.    EASI> vd2: = "Test 2" 
  4227.    EASI> vd2# = 19,512,512,3,8,0,0,0,0,0,0,0,0,0,0,0     
  4228.    EASI> vd00 = "VD2:"    
  4229.    EASI> run imageworks
  4230.  
  4231.  The above commands will start up a 512 pixel by 512 line ImageWorks image 
  4232.  display, labelled "Test 2". 
  4233.  
  4234.  On UNIX systems, the socket number and PID for ImageWorks can be printed 
  4235.  as follows: 
  4236.  
  4237.    EASI> print "socket=",vd2#(12),"   pid=",vd2#(13) 
  4238.  
  4239.  Multiple ImageWorks image display windows can be started by using the vd00 
  4240.  parameter to point to different vdn: pairs.
  4241.  
  4242. 1    Installation
  4243. @index{Installation}
  4244.  
  4245.  The following subtopics cover the basic information needed to install
  4246.  ImageWorks, whether or not you have previously installed PCI software.
  4247.  This information is intended for customers installing ImageWorks as a
  4248.  standalone product; if you are installing ImageWorks as part of your
  4249.  PCI software package, you should refer to your installation guide for
  4250.  instructions.
  4251.  
  4252.  This installation information includes the system requirements for 
  4253.  running ImageWorks, a list of the types of files distributed, and system 
  4254.  specific directions to install and license ImageWorks on your machine.
  4255.  
  4256. 2    System Requirements
  4257. @index{System Requirements}
  4258.  
  4259.  UNIX or VMS systems:
  4260.  - 8-bit or 24-bit colour capability.
  4261.  - X11 windowing system - some systems (such as Intergraph and DEC 
  4262.    systems) require the Motif GUI, and the SUN requires OpenWindows or 
  4263.    Motif.
  4264.  - at least 32 Mbytes of RAM (more are recommended)
  4265.  - at least 200+ Mbytes of free disk space on a single disk
  4266.  - for SCO UNIX a parallel port is required for the interlock
  4267.  - CDROM drive
  4268.  
  4269.  Mac OS Systems:
  4270.  - Apple Macintosh Workstation
  4271.  - 24-bit graphics option
  4272.  - Mac OS System 7.x or later
  4273.  - At least 16Mb RAM (32+ Mb recommended)
  4274.  - At least 15Mb free disk space in one partition
  4275.  - CD-ROM drive
  4276.  - Interlock device (supplied with PCI software)
  4277.  
  4278.  Windows 3.1, Windows 95 and Windows NT platforms:
  4279.  - 486DX or better compatible PC (486SX not supported)
  4280.  - CD-ROM drive (for installing PCI software)
  4281.  - At least 250Mb free disk space
  4282.  - Windows 3.1 should be running in 386 enhanced mode
  4283.  - DOS 5.0, 6.0 or 6.2 (DOS 6.2 recommended)
  4284.  - At least 12Mb memory for 3.1 or 16Mb for 95/NT (32Mb recommended)
  4285.  - Any VGA card providing 640x480x256 colour display or better
  4286.  - Any 2-button or 3-button mouse.
  4287.  - Sentinel Pro Interlock Device (supplied with PCI software)
  4288.  
  4289.  OS/2 platforms:
  4290.  - OS/2 version 2.x or 3.x (warp) installed 
  4291.  - 486DX2 or better PS/2 or compatible PC (486SX not supported)
  4292.  - CD-ROM drive (for software installation)
  4293.  - Minimum 16Mb of memory (32Mb recommended)
  4294.  - At least 250Mb free disk space
  4295.  - Any XGA or VGA card providing 640 x 480 x 256 colour display or better
  4296.  - Any 2-button or 3-button mouse
  4297.  - Sentinel Pro Interlock Device 
  4298.  - In most cases, it is strongly recommended that serious users
  4299.    have at least 32Mb memory, an 8/15/16/24-bit VGA card capable 
  4300.    of 800 x 600 x 256 colour display (or better), and a 600Mb 
  4301.    or 1.2Gb disk. 
  4302.  - Note: PCI software can run on a 386 PC with an 80387 co-processor, but
  4303.    its performance would be very poor. Therefore, a 486DX PC is the recommended
  4304.    minimum.
  4305.  
  4306.  NOTE: The above requirements are for installing the whole PCI software package
  4307.  on your system. For the ImageWorks standalone version, the disk space 
  4308.  required is less than the above requirements.
  4309.  
  4310. 2    Overview of Distributed Files
  4311.  
  4312.  The main distribution files for running the standalone version of ImageWorks
  4313.  consists of the following:
  4314.  
  4315.  
  4316.    Directory/file(s)        Description
  4317.   +-----------------            -----------
  4318.  
  4319.    exe/imageworks               ImageWorks executable program
  4320.    (:user:ImageWorks        MacOS ImageWorks)
  4321.    etc/license                  license manager
  4322.    etc/*            * other files
  4323.    demo/irvine.pix              Landsat TM 30m resolution, 512 x 512
  4324.    demo/eltoro.pix              SPOT Panchromatic 10m resolution, 1024 x 1024
  4325.    demo/map100.pix              scanned map of irvine area, 512 x 512
  4326.    hlp/WORKS.HLP                generic help file
  4327.    hlp/CLWORKS.HLP              ImageWorks Multispectral help file
  4328.    hlp/IWORKS.HLP               ImageWorks help file
  4329.    hlp/GDB.HLP            GDB File format help file
  4330.    hlp/PROJ.HLP            Projection help file
  4331.  
  4332.  
  4333. 2    Mounting the CD-ROM
  4334. @index{CD-ROM}
  4335.  
  4336.  The first step in the installation is to load or mount the CD-ROM 
  4337.  containing the ImageWorks software.  
  4338.  
  4339.  For Windows 3.1 and Mac OS systems, this operation will consist of 
  4340.  simply inserting the CD into the drive, and knowing either the drive 
  4341.  letter or name.
  4342.  
  4343.  For Windows 95 and NT, it is recommended that the PCI software be
  4344.  installed using a login with Administrator privileges, in order to
  4345.  permit creation of appropriate common window groups.
  4346.  
  4347.  UNIX Systems:
  4348.  
  4349.  On UNIX the process of mounting the CDROM is somewhat more involved, and will 
  4350.  generally require superuser privileges to mount the drive (an 
  4351.  annoying fact of life with CD-ROMs on Unix).  The actual mount command 
  4352.  varies slightly from system to system, and examples are shown below (the 
  4353.  /cdrom directory must already exist, although any empty directory 
  4354.  can be used):
  4355.  
  4356.     AIX:
  4357.     /etc/mount  -v  cdrfs  -o  ro  /dev/cd0  /cdrom 
  4358.  
  4359.      DG/UX:
  4360.     /sbin/mount  -t  cdrom  -o noversion  /dev/pdsk/4  /cdrom 
  4361.  
  4362.     HP/UX
  4363.     /etc/mount  -t  cdfs  -o  ro  /dev/dsk/c201d5s0  /cdrom 
  4364.  
  4365.       Note: the version number (;\#) appended to the end of filenames is 
  4366.       unavoidable on HP/UX.  This becomes part of the actual filename, and
  4367.       must be specified when referencing files.
  4368.  
  4369.     IRIX:
  4370.     /etc/mount  -t  iso9660  /dev/scsi/sc0d7l0  /cdrom 
  4371.  
  4372.     OSF/1:
  4373.     /sbin/mount  -t  cdfs  -o noversion  /dev/rz4c  /cdrom 
  4374.  
  4375.     SCO ODT:
  4376.     mount  -r  -f  HS  /dev/cd0  /cdrom 
  4377.  
  4378.      Solaris:
  4379.     /sbin/mount  -F  hsfs  -o  ro  /dev/dsk/c0t4d0s2  /cdrom 
  4380.  
  4381.     SunOS:
  4382.     /usr/etc/mount  -t  hsfs  -o  ro  /dev/sr0  /cdrom 
  4383.  
  4384.     Ultrix:
  4385.     /sbin/mount  -t  cdfs  -r  -o  noversion  /dev/rz4c  /cdrom 
  4386.  
  4387.  For VMS/OpenVMS systems, the process is also somewhat involved, and 
  4388.  will require that you have LOGICAL VOLUME privileges:
  4389.  
  4390.     OpenVMS:
  4391.  
  4392.     MOUNT /MEDIA=CDROM /OVERRIDE=IDENTIFICATION DKA400:
  4393.  
  4394.     VMS:  (requires the F11CD product from Digital)
  4395.  
  4396.     CD_MOUNT/MEDIA=CDROM/PROC=F11CDAC/OVERRIDE=ID DKA400: PCIV60
  4397.  
  4398.  
  4399. 2    Pre-installation Setup
  4400.  
  4401.  There are some specific steps and procedues that need to be followed
  4402.  prior to starting ImageWorks.
  4403.  
  4404. 3    UNIX Systems pre-installation setup
  4405.  
  4406.  If you are updating an existing system, make a backup of the existing
  4407.  pci directory tree, then delete the contents (keeping any site
  4408.  specific files such as .cshrc, .login, etc., then proceed to
  4409.   
  4410.  Create an account called pci, into which the home directory the 
  4411.  PCI software will be loaded. Next, you should set up the environment 
  4412.  variable PCIHOME to directory created above. (make sure you add this to 
  4413.  each user's .cshrc file (or equivalent), or a system wide setup file if 
  4414.  one is  used):
  4415.  
  4416.     setenv  PCIHOME  Account_Directory
  4417.  
  4418.  Where Account_Directory is the directory for the new pci account.
  4419.   
  4420.  NOTE: Using the /pci symbolic link as outlined in previous versions
  4421.  of PCI's software will also still work, although the use of the PCIHOME
  4422.  environment variable is now the recommended approach.
  4423.  
  4424.  On UNIX systems, run the tar command to extract the appropriate tar file
  4425.  off the CDROM. Use the appropriate command given below for the system
  4426.  on which you are doing the installation.
  4427.  
  4428.  Data General AViiON / DG/UX:
  4429.     % tar  xovf  /cdrom/PCIDGUX/PCIDG542.TAR 
  4430.  
  4431.  Digital AXP / Unix (OSF/1):
  4432.  If you are running OSF/1 V2.0, V3.0, or V3.2, enter the following
  4433.  commands instead:
  4434.  
  4435.     % tar  xovf  /cdrom/PCIOSF/PCIOSF.TAR 
  4436.  
  4437.  Digital DECstation / Ultrix:
  4438.     % tar  xovf  /cdrom/PCIULTRIX/PCIULTRX.TAR 
  4439.  
  4440.  Hewlett Packard HP9000 / HP/UX:
  4441.     % tar  xovf  /cdrom/PCIHPUX/PCIHPUX.TAR; 
  4442.  
  4443.       Note: the version number (;\#) appended to the end of filenames is
  4444.       unavoidable on HP/UX.  This becomes part of the actual filename, and
  4445.       must be specified when referencing files.
  4446.  
  4447.  IBM RS/6000 / AIX:
  4448.     % tar  xovf  /cdrom/PCIAIX/PCIAIX325.TAR 
  4449.  
  4450.       Note: PCI expects to offer a native release for AIX 4.1.2 in the
  4451.       near future.  Contact your PCI representative for information.
  4452.  
  4453.  SGI Iris / IRIX:
  4454.     % tar  xovf  /cdrom/PCIIRIX/PCIIRX53.TAR 
  4455.  
  4456.  SCO ODT:
  4457.     % tar  xovf  /cdrom/PCIODT/PCIODT.TAR 
  4458.  
  4459.  Sun Solaris:
  4460.     % tar  xovf  /cdrom/PCISUN/PCISOL54.TAR 
  4461.  
  4462.  Sun SunOS:
  4463.     % tar  xovf  /cdrom/PCISUN/PCISUNOS.TAR 
  4464.  
  4465.  
  4466.  Next, you must add the PCI exe directory to your search path, and set
  4467.  up the PCIHOME environment variable.
  4468.  
  4469.  If you are using the C-shell (csh), add the following commands to each
  4470.  user's .cshrc file:
  4471.  
  4472.     setenv  PCIHOME  Account_Directory
  4473.     set path=( $path $PCIHOME/exe )
  4474.  
  4475.     where Account_Directory is the directory for the new pci account.
  4476.  
  4477.  If you are using a shell other than the C-shell (csh), you should
  4478.  use a mechanism appropriate to your particular shell to add the PCI exe
  4479.  directory to your path.
  4480.  Alternatively, the programs can be invoked directly using their full path and
  4481.  filename.
  4482.  
  4483.  You should now return to root or superuser and unmoun the CD-ROM and
  4484.  remove it:
  4485.  
  4486.     # umount  /cdrom
  4487.  
  4488.  
  4489. 3    Windows 3.1, Windows 95 and Windows NT pre-installation setup:
  4490.  
  4491.  Many of the desktop systems require that certain actions be taken before 
  4492.  installing the PCI software:
  4493.  
  4494.  PCI software for Windows 3.1 is stored under the PCIWIN31 directory on
  4495.  the CD-ROM; PCI software for Windows 95 and Windows NT is stored under
  4496.  the PCIWINNT directory. This CD-ROM may also contain other PCI software
  4497.  directories for different operating systems.
  4498.  
  4499.  Run the INSTALL.BAT command file in the PCIWIN31 (or PICWINNT) directory
  4500.  on the CD-ROM, as follows:
  4501.  
  4502.  Insert the CD-ROM in the CD-ROM drive.
  4503.  Open the File Manager icon (if not already open).
  4504.  Click the CD-ROM drive icon (D: or other) in the directory window.
  4505.  Choose Run from the File menu in the File Manager.
  4506.  Type the following command in the Command Line box:
  4507.  
  4508.         \PCIWIN31\INSTALL       (for Windows 3.1)
  4509.     \PCIWINNT\INSTALL    (for Windows 95 or Windows NT)
  4510.  
  4511.  Then choose the OK button in the Run dialog box.
  4512.  Follow the instructions given in the command window.
  4513.  
  4514.  The above INSTALL command can also be executed from an MS-DOS command window,
  4515.  if the CD-ROM is the active drive.
  4516.  
  4517.  By default, PCI software is installed on C: drive. If you wish to install
  4518.  PCI software on a different drive (for example, E: drive), then
  4519.  specify the drive letter (followed by a colon) in the command line, as
  4520.  follows:
  4521.  
  4522.         \PCIWIN31\INSTALL E:    (for Windows 3.1)
  4523.     \PCIWINNT\INSTALL E:    (for Windows 95 or Windows NT)
  4524.  
  4525.  
  4526. 4    Win32s for Windows 3.1
  4527.  
  4528.  At this point, Windows 3.1 users must install the Win32s
  4529.  software before proceeding any further.  This Microsoft software
  4530.  allows you to run 32-bit windows applications under Windows 3.1, and
  4531.  is required for the PCI software to run.
  4532.  If you are already running Win32s but not the version
  4533.  supplied with the PCI software, it is important that you install the
  4534.  version provided, or the software may not function correctly.
  4535.  
  4536.  If you are installing on Win3.1, run the SETUP.EXE program in
  4537.  the WIN32S directory on the CD-ROM, as follows:
  4538.  
  4539.  - Insert the CD-ROM in the CD-ROM drive.
  4540.  - Open the File Manager icon (if not already open).
  4541.  - Click the CD-ROM drive icon (D: or other) in the directory window.  
  4542.  - Choose Run from the File menu in the File Manager.
  4543.  
  4544.  Type the following command in the Command Line box:
  4545.  
  4546.           \WIN32S\DISK1\SETUP
  4547.  
  4548.  then choose the OK button in the Run dialog box.
  4549.  
  4550.  Follow the instructions given by Microsoft Setup.
  4551.  
  4552.  SETUP will inform you if Win32s is already installed on your system.
  4553.  
  4554. 4    Interlock
  4555.  
  4556.  You should also ensure that your Interlock is now correctly installed
  4557.  on the first parallel port of your computer. If it has not 
  4558.  been correctly installed, the system information returned by the 
  4559.  license program and your license key will not be correct.
  4560.  
  4561.  Note: Unlike Windows NT, there is no Sentinel driver required to access
  4562.  the interlock on Windows 95.
  4563.  
  4564.  Windows NT users must ensure that the Interlock is now
  4565.  correctly installed on the first parallel port of your computer, and
  4566.  then install the supplied Interlock driver:
  4567.  
  4568.  Note:  Substitute the appropriate drive letter for your CD-ROM
  4569.  in the following instructions.
  4570.  
  4571.  The Sentinel device driver supplied on the PCI CD-ROM in 
  4572.  E:\PCIWINNT\DRI must be installed before the hardware 
  4573.  interlock device can work.  Note that the actual directory name may
  4574.  vary slightly with the software version, but should be obvious for
  4575.  the operating system you are running.
  4576.  
  4577.  - In the Main desktop window, open the Control Panel icon.     
  4578.  - In the Control Panel window, open the Drivers icon.
  4579.  - In the Drivers window, choose the Add button.
  4580.  - In the Add window, select ``Unlisted or Updated Driver'', then
  4581.    choose the OK button.
  4582.  - In the Install Driver window, type C:\PCI\DRI in      
  4583.    the dialog box.
  4584.  -  In the Add Unlisted or Updated Driver window, select
  4585.    ``Sentinel for i386 Systems'' (this should be the only item), then 
  4586.    choose the OK button.
  4587.  - If a ``Driver Exists'' window pops up, choose the New button to install
  4588.    the new driver.
  4589.  - In the Sentinel Driver window, select the parallel port to   
  4590.    which the interlock is attached, then choose OK.
  4591.  - In the System Setting Change window, choose the Restart Now  
  4592.    button to reboot the computer.
  4593.  
  4594.  The Sentinel interlock device driver will be installed when
  4595.  the computer is rebooted.
  4596.  
  4597. 4    Creating the PCI Software Group
  4598.  
  4599.  For Windows 3.1 and NT systems, PCI Software is distributed with a group
  4600.  file, 
  4601.  called PCI\ETC\PCIV60.GRP, (PCI\ETC\PCIV6095.GRP for Windows 95)
  4602.  which defines the program items (icons) for the PCI Software group.
  4603.  
  4604.  For the following set of instructions, if PCI software is not in 
  4605.  C:\PCI, substitute the appropriate drive and directory path. 
  4606.  
  4607.  For Windows 95:
  4608.  
  4609.  - Open the File Manager
  4610.  - Find the group file in the PCI\ETC directory
  4611.  - Pick up the group file and drop it on the desktop
  4612.  
  4613.  Normally this should complete the process.  However, if you have
  4614.  installed the files elsewhere, you will have to change the properties
  4615.  of the icons to specify the new path.  To do this, click on the icon
  4616.  with the right mouse button.  Select "shortcut" and modify "Target"
  4617.  and "Start In", replacing C:\PCI with the PCI tree location.
  4618.  It is advisable to use the full path.
  4619.  
  4620.  
  4621.  For Windows 3.1:
  4622.  
  4623.  To create the PCI Software group, do the following:
  4624.  
  4625.  - Choose the New command from the File Menu in the Program Manager.
  4626.  - Select the Program Group option from the New Program Object dialog
  4627.    box, then choose the OK button.
  4628.  - Type C:\PCI\ETC\PCIV60.GRP for the Group File in the
  4629.    Program Group Properties dialog box, then choose the OK button.
  4630.  - Do not type anything for Description in the Program Group
  4631.    Properties dialog box.
  4632.  
  4633.  The PCI Software group should now appear inside the Program Manager.
  4634.  It should contain an ImageWorks icon with other PCI program icons.
  4635.  
  4636.  By default, all items (icons) in the PCI Software group assume
  4637.  that PCI software is installed on the drive and root directory
  4638.  specified by the PCIHOME environment variable.  PCIHOME must be
  4639.  set in the AUTOEXEC.BAT file and the computer rebooted before applications
  4640.  in the PCI Software group can be used, and before licensing can be done.
  4641.  
  4642.  If you wish, you can change the Working Directory for icons in the
  4643.  PCI Software group to any directory, using the Properties
  4644.  command in the File Menu of the Program Manager.
  4645.  
  4646.  For Windows NT:
  4647.  
  4648.  For Windows NT,  a common program group for PCI software must be set up to
  4649.  allow users to run ImageWorks, and other PCI programs.  This is not
  4650.  done automatically when PCI software is installed, and must be done
  4651.  by following the instructions given below.
  4652.  
  4653.  Note:  To create a common program group, you must be logged on as a
  4654.  member of the Administrators or Power Users group.
  4655.  
  4656.  To create the PCI Software common program group, do the following:
  4657.  
  4658.  - Choose the New command from the File Menu in the Program Manager.
  4659.  - Select the Common Program Group option from the New Program Object dialog
  4660.    box, the choose the OK button.
  4661.  - In the Description box, type \verb+V6.0 PCI Software+, then choose the
  4662.    OK button.  An empty PCI Software group window should appear inside the
  4663.    Program Manager window.
  4664.   
  4665.  To create the ImageWorks icon, do the following:
  4666.  
  4667.  - Choose the New command from the File Menu in the Program Manager.
  4668.  - Select the Program Item option from the New Program Object dialog
  4669.    box, the choose the OK button.
  4670.  - In the Description box, type ImageWorks.
  4671.  - In the Command Line box, type C:\PCI\EXE\IMAGEWOR.EXE.
  4672.  - In the Working Directory box, type C:\PCI\USER or other
  4673.    directory of your choice.
  4674.  - Choose the OK button.  The ImageWorks icon
  4675.    should appear inside the PCI Software group window.
  4676.  
  4677.  Icon program items can be created for the following set of programs:
  4678.  
  4679.    Description    Program File
  4680.  
  4681.       ACE           ACE.EXE
  4682.       EASI          EASI and choose \PCI\ETC\EASI.ICO for its icon
  4683.       FLY!          FLY.EXE
  4684.       GCPWorks      GCPWORKS.EXE
  4685.       ImageMapping  IMAGEMAP.EXE
  4686.       ImageWorks    IMAGEWOR.EXE
  4687.       Xpace         XPACE.EXE 
  4688.  
  4689.   
  4690. 3    Mac OS pre-installation setup
  4691.  
  4692.  For the Mac OS systems, please proceed as follows:
  4693.  
  4694.  - Open the "System Folder" folder off the CDROM and select the
  4695.    VT102 Tool and TTY Tool from it, then drag the two icons over
  4696.    into your main System Folder - (These two tools will be
  4697.    copied from the CDROM and placed into your Extension folder on
  4698.    your system.)
  4699.  
  4700.  - Copy over the files and directories listed from the 
  4701.    distributed list section over into your hard disk, 
  4702.    maintaining the same directory structure.
  4703.    (or you can copy the whole PCI folder into your hard disk)
  4704.  
  4705.  - Shutdown your computer and connect the supplied Interlock device
  4706.    to any ADB (Apple Desktop Bus) port on your system (usually
  4707.    off your keyboard connection). The ADBs are used to connect the
  4708.    mouse, keyboard and other input devices. The Interlock can be
  4709.    connected inline with other devices.
  4710.  
  4711.  The Sentinel interlock device driver will be installed when
  4712.  the computer is rebooted.
  4713.  
  4714.  If the Interlock and driver have not been correctly installed, the 
  4715.  system information returned by the License program will be invalid.
  4716.  
  4717.  
  4718. 3    OS/2 pre-installaiton setup
  4719.  
  4720.  PCI software for OS/2 is stored under the \PCIOS2 directory on 
  4721.  the CD-ROM.  This CD-ROM may also contain other PCI software 
  4722.  directories for different operating systems.
  4723.  
  4724.  Run the INSTALL.CMD command file in the \PCIOS2 directory
  4725.  on the CD-ROM, as follows:
  4726.  
  4727.  - Open the Command Prompts folder in the OS/2 System window. 
  4728.  - Open the OS/2 Window folder in the Command Prompts window.
  4729.  - Make your CD-ROM the active drive (for example, E: drive)
  4730.    then run INSTALL inside the OS/2 command window, as follows:
  4731.  
  4732.         E:\PCIOS2\INSTALL
  4733.  
  4734.  - Follow the instructions given in the command window.
  4735.  - Type \EXIT inside the OS/2 command window to close it.
  4736.  - Close the Command Prompts window by double-clicking the upper left
  4737.    corner of the window.
  4738.  
  4739.  By default, PCI software is installed on C: drive. If you wish to install
  4740.  PCI software on a different drive (for example, D: drive), then
  4741.  specify the drive letter (followed by a colon) in the command line, as
  4742.  follows:
  4743.  
  4744.         \PCIOS2\INSTALL D:
  4745.  
  4746. 4     Setting up PCI Software folder and ImageWorks in OS/2
  4747.  
  4748.  A PCI software folder must be set up to allow users to run ImageWorks and
  4749.  other PCI programs.  This is not done automatically when PCI software
  4750.  is installed, and must be done by following the instructions given below.
  4751.  
  4752.  - To create the PCI Software folder, do the following:
  4753.  - Open (double-click) the Templates icon on the desktop.
  4754.  - Point to the Folder template in the Templates window.
  4755.  - Press and hold mouse button 2 (right button).
  4756.  - Drag a copy of the Folder template to an empty place on the desktop.
  4757.  - Release mouse button 2.  A new Folder icon is created on the desktop.
  4758.  - Press and hold the Alt key on the keyboard, then click mouse
  4759.    button 1 (left button) on the new Folder icon.
  4760.  - Erase Folder (using the DEL key), then type PCI Software for the
  4761.    folder title.
  4762.  - Click mouse button 1 in an empty place of the desktop to accept
  4763.    the new title.
  4764.  - Open (double-click) the new PCI Software folder.  An empty
  4765.    PCI Software window should appear.
  4766.  
  4767.  To create a program item for ImageWorks, do the following:
  4768.  
  4769.  - Point to the Program template in the Templates window.
  4770.  - Press and hold mouse button 2 (right button).
  4771.  - Drag the Program template to the PCI Software folder.
  4772.  - Release mouse button 2.  The Program-Settings window appears.
  4773.  - Type C:\PCI\EXE\IMAGEWOR.EXE in the ``Path and file name'' box.
  4774.  - Click the ``Working directory'' box, then type C:\PCI\USER
  4775.    (or other directory). 
  4776.  - Choose the ``General'' page tab in the Program-Settings window.
  4777.  - Erase Title (using the DEL key), then type ImageWorks in the ``Title'' box.
  4778.  - Close the Program-Settings window by double-clicking the upper
  4779.    left corner of the window.
  4780.  
  4781.  The ImageWorks icon will now appear inside the PCI Software window.
  4782.  
  4783.  Close the Templates folder by double-clicking the upper left corner
  4784.  of the Templates window.
  4785.  
  4786.  
  4787. 4    Editing the OS/2 CONFIG.SYS file
  4788.  
  4789.  PCI software for OS/2 requires modification to
  4790.  the CONFIG.SYS file.  The PATH and LIBPATH environment
  4791.  variables must be modified, and the OS2SNTNL.SYS driver for
  4792.  the Sentinel interlock drive must be installed.
  4793.  
  4794.  Note:  If PCI software is not on C: drive, substitute C: with the
  4795.  appropriate drive letter in the following instructions.
  4796.  
  4797.  Use the OS/2 System Editor to add C:\PCI\EXE to the SET PATH and SET LIBPATH
  4798.  commands, and to install the Sentinel device driver C:\PCI\ETC\OS2SNTNL.SYS
  4799.  
  4800.  You can edit the CONFIG.SYS file by doing the following:
  4801.  - Open (double-click) the Drives folder in the OS/2 System window.
  4802.  - Open the C Drives icon in the Drives window.
  4803.  - Open the root directory (the minus icon at the top of the tree)
  4804.    in the Tree View window.
  4805.  - Double-click the C Drive icon in the root directory window.
  4806.  - Open the CONFIG.SYS file folder in the Icon View window.
  4807.    An OS/2 System Editor window containing the text of CONFIG.SYS will appear.
  4808.  - Use the arrow keys to move around the CONFIG.SYS file until you
  4809.    find the existing SET PATH and SET LIBPATH statements in the file.
  4810.    (The word SET may be missing from the command).
  4811.  - Append C:\PCI\EXE; to the SET PATH statement by typing
  4812.    text at the end of the line.
  4813.  - Append C:\PCI\EXE; to the SET LIBPATH statement by typing
  4814.    text at the end of the line.
  4815.  - Add the following new line of text at the end of the file:
  4816.  
  4817.         DEVICE=C:\PCI\ETC\OS2SNTNL.SYS
  4818.  
  4819.  - Close the OS/2 System Editor window by double-clicking the
  4820.    upper left corner of the window.
  4821.  - If you are prompted to select file type, choose Plain Text.
  4822.  - Close other open windows in the same manner.
  4823.  
  4824.  The computer should be shutdown and rebooted to update the PATH and LIBPATH
  4825.  variables and install the Sentinel driver.
  4826.  To shutdown the system, do the following:
  4827.  
  4828.  - Point to an empty area on the desktop.
  4829.  - Click mouse button 2, then select ``Shut down'' from the pop-up menu.
  4830.  - Select Yes to confirm shutdown, and wait for message stating that
  4831.    shutdown is complete.
  4832.  - Reboot computer by pressing CTRL+ALT+DEL keys, or by turning power
  4833.    off and on.
  4834.  
  4835.  
  4836. 2    Licensing PCI Software
  4837. @index{Licensing}
  4838.  
  4839.  This PCI License / Copy Protection System section explains how to 
  4840.  ensure that ImageWorks is licensed to run and the Running ImageWorks 
  4841.  section explains how to run ImageWorks.
  4842.  
  4843. 2    Systems with Existing PCI EASI/PACE software
  4844. @index{Directory Creation!Update}
  4845.  
  4846.  If you already have some PCI software (typically EASI/PACE) then you 
  4847.  should use the same installation directory and consider ImageWorks to be an 
  4848.  addition to it. The ImageWorks distribution is designed to dovetail into the 
  4849.  standard EASI/PACE system.
  4850.  
  4851.  If there is an account for the PCI software then you should log into 
  4852.  this account 
  4853.  to install ImageWorks. Installation proceeds from the home directory of this 
  4854.  account (i.e., don't change directories after logging in).
  4855.  
  4856.  If there is no account then just move to the pci directory. This directory is 
  4857.  usually named something like /usr/pci or /home/pci or /pci (for VMS, 
  4858.  PCI:[000000]). 
  4859.  
  4860.  Make sure you have the proper privileges to access this directory. This may 
  4861.  require logging on as system manager (i.e., root, superuser, or system).
  4862.  
  4863.  For example:
  4864.  
  4865.  UNIX:
  4866.  
  4867.    % cd /pci
  4868.  
  4869.  VMS:
  4870.  
  4871.    $ set default PCI:[000000]
  4872.  
  4873.  
  4874. 3    Creating a New Directory/Account
  4875. @index{Directory Creation!New User}
  4876.  
  4877.  If this is your first piece of PCI software we suggest creating a 
  4878.  new directory (or a new account) called pci. 
  4879.  
  4880.  For example:
  4881.  
  4882.  UNIX:
  4883.  
  4884.    % mkdir pci
  4885.  
  4886.    % cd pci
  4887.  
  4888.  On PC platforms:
  4889.  
  4890.    Create a new folder named "pci".
  4891.  
  4892.  VMS:
  4893.  
  4894.    $ create/directory disk:[PCI]
  4895.  
  4896.  where disk: is the disk drive name on which you plan to install 
  4897.  ImageWorks (i.e. DUA0:).
  4898.  
  4899.  You need to define the following VMS logical and symbolic name (we 
  4900.  suggest also adding these to your LOGIN.COM file):
  4901.  
  4902.    $ define PCI disk:[PCI.]/trans=(conc,term)
  4903.  
  4904.    $ imageworks:== "$PCI:[exe]imageworks.exe"
  4905.  
  4906.  Now change to the PCI directory.
  4907.  
  4908.    $ set default PCI:[000000]
  4909.  
  4910.  In addition to this definition, any account used to run ImageWorks will 
  4911.  require certain resources.
  4912.  
  4913.  In order for EASI/PACE to run, the system manager must ensure that the 
  4914.  PCI account and all other user accounts have the following default 
  4915.  privileges:
  4916.  
  4917.    GRPNAM    may insert in group logical name table
  4918.  
  4919.    TMPMBX    may create temporary mailbox
  4920.  
  4921.    NETMBX    may create network device
  4922.  
  4923.  All EASI/PACE user accounts should also have their buffered I/O byte 
  4924.  limit and paging file quota increased to 65536, and when using X-
  4925.  Windows displays, to at least 100000 to 200000 (see example below).
  4926.  
  4927.  To assign required privileges and increase quotas for the PCI account, the 
  4928.  system manager must run the AUTHORIZE utility, as follows:
  4929.  
  4930.    $ SET DEFAULT SYS$SYSTEM
  4931.  
  4932.    $ RUN AUTHORIZE
  4933.  
  4934.    UAF> MODIFY PCI/
  4935.    PRIVILEGES=(GRPNAM,TMPMBX,NETMBX,LOG_IO,PHY_IO,AL
  4936.    TPRI)
  4937.  
  4938.    UAF> MODIFY PCI/
  4939.    DEFPRIVILEGES=(GRPNAM,TMPMBX,NETMBX,LOG_IO,PHY_IO
  4940.    ,ALTPRI)
  4941.  
  4942.    UAF> MODIFY PCI/BYTLM=200000/PGFLQUOTA=100000
  4943.  
  4944.  An example of the various limits which can be given to the PCI account is 
  4945.  shown below. In particular, please note the settings of Maxdetach, Prclm, 
  4946.  Fillm, ASTlm, ENQlm, Bytlm, and Pgflquo.
  4947.  
  4948.    UAF>SHOW PCI
  4949.  
  4950.    Username: PCI            Owner: PCI
  4951.  
  4952.    Account: R_D            UIC: [35000,7] ([PCI])
  4953.  
  4954.    CLI: DCL            Tables: DCLTABLES
  4955.  
  4956.    Default: DISK$GENERAL:[PCI]
  4957.  
  4958.    LGICMD:
  4959.  
  4960.    Login Flags:
  4961.  
  4962.    Primary days: Mon Tue Wed Thu Fri
  4963.  
  4964.    Secondary days:                Sat Sun
  4965.  
  4966.    No access restrictions
  4967.  
  4968.    Expiration: (none) Pwdminimum: 4 Login Fails:0
  4969.  
  4970.    Pwdlifetime: 28 00:00 Pwdchange: 24-JUN-1991 08:33
  4971.  
  4972.    Last Login: 28-JUN-1991 09:57 (interactive),
  4973.  
  4974.         25-MAY_1989 14:00 (non-interactive)
  4975.  
  4976.    Maxjobs:     0    Fillm:         100    Bytlm:    
  4977.    200000
  4978.  
  4979.    Maxacctjobs:    0        Shrfillm:     0    Pbytlm:    0
  4980.  
  4981.    Maxdetach:     0    BIOlm:         18    JTquota:    0
  4982.  
  4983.    Prclm:    20    DIOlm:        18    WSdef:    256
  4984.  
  4985.    Prio:    4    ASTlm:        100    WSquo:    4096
  4986.  
  4987.    Queprio:    0    TQElm:        10    WSextent:    
  4988.    16384
  4989.  
  4990.    CPU:    (none)    Enqlm:        200    Pgflquo:    
  4991.    100000
  4992.  
  4993.    Authorized Privileges:
  4994.  
  4995.    GRPNAM TMPMBX NETMBX
  4996.  
  4997.    Default Privileges:
  4998.  
  4999.    GRPNAM TMPMBX NETMBX
  5000.  
  5001.    UAF>EXIT
  5002.  
  5003. 2    Running PCI License / Copy Protection System
  5004. @index{Installation!Licensing}{Licensing}
  5005.  
  5006.  This is an overview of using PCI's License Management / Copy Protection 
  5007.  system. For further information, the user is directed to read the System
  5008.  Specific Licensing Guide.
  5009.  
  5010.  PCI uses a system of license keys which are applied to a license file
  5011.  to enable operation. For network users, a license key for each 
  5012.  licensed CPU must be applied. More than one license key can be applied 
  5013.  to a single license file.
  5014.  
  5015.  If you have not been prelicensed the following steps will take you through 
  5016.  the licensing process:
  5017.  
  5018. 3    UNIX:
  5019. @index{Licensing!UNIX}
  5020.  
  5021.  Get your CPU Id. by running the license program and noting the CPU Id. 
  5022.  number it presents, for example:
  5023.  
  5024.    % etc/license
  5025.  
  5026.    CPU Id. of current system is: [1762007148]
  5027.  
  5028.      :          :          :          :
  5029.  
  5030.      :          :          :          :
  5031.  
  5032.    Enter command: x
  5033.  
  5034.  Contact PCI's Product Support department and have your CPU Id. number and 
  5035.  type of computer system ready. This can be done by telephone, fax, or E-mail.
  5036.  You will receive an alphanumeric License Key.
  5037.  
  5038.  Use the license program to apply your License Key to the ImageWorks 
  5039.  program.
  5040.  
  5041.    % etc/license XXXXXXXXXXXXXXXXX 
  5042.  
  5043.  where XXXXXXXXXXXXXXXXX is your License Key.
  5044.  
  5045.  Write the License Key on a piece of paper and place it in a safe place 
  5046.  in case you ever need to re-install the ImageWorks software from the 
  5047.  distribution CDROM
  5048.  
  5049. 3    SCO UNIX:
  5050. @index{Licensing!SCO UNIX}
  5051.  
  5052.  For SCO UNIX, in addition to applying your license key as with other UNIX 
  5053.  systems, it is necessary to install the Interlock device and its driver on 
  5054.  your system. 
  5055.  
  5056.  The Interlock device itself attaches to the Parallel port on the back of your 
  5057.  computer (between the computer and the printer cable, if a printer is 
  5058.  attached). Installing the driver does not impact the use of the printer or 
  5059.  system spooler in any way.
  5060.  
  5061.  To install the Interlock driver, perform the following steps:
  5062.  
  5063.  - Make a backup of your user files. It is very unlikely that anything 
  5064.    will go wrong during the installation process, but if something does, this 
  5065.    will allow you to recover.
  5066.  
  5067.  - The system will need to be rebooted as part of the driver installation. 
  5068.    It is recommended that you ensure that all other users (if any) are logged 
  5069.    off. You will need to be logged in as root to perform the remaining steps.
  5070.  
  5071.  - Do not hit the <DEL> key or <RESET> button, power down your system, 
  5072.    or in any way attempt to interrupt the installation once it has begun. 
  5073.    Doing so may corrupt your system and leave it unbootable.
  5074.  
  5075. 3    VMS:
  5076. @index{Licensing!VMS}
  5077.  
  5078.  Get your CPU Identification Number by running the license program and 
  5079.  noting the number it presents:
  5080.  
  5081.    $ run pci:[etc]license
  5082.  
  5083.    CPU Id. of current system is: [1762007148]
  5084.  
  5085.      :          :          :          :
  5086.  
  5087.      :          :          :          :
  5088.  
  5089.    Enter command: x
  5090.  
  5091.  Contact PCI's Product Support department, and have your CPU Identification 
  5092.  number and type of computer system ready. Contact can be made by telephone, 
  5093.  fax, or E-mail. You will receive an alphanumeric License Key.
  5094.  
  5095.  Use the license program to apply your License Key to the ImageWorks 
  5096.  program:
  5097.  
  5098.    $ license :== "$pci:[etc]license.exe"
  5099.    $ set default pci:[000000]
  5100.    $ license XXXXXXXXXXXXXXXXX 
  5101.    $ delete/symbol/global license
  5102.  
  5103.    where XXXXXXXXXXXXXXXXX is your alphanumeric License Key.
  5104.  
  5105.  Write the License Key on a piece of paper and place it in a safe place in 
  5106.  case you ever need to re-install the ImageWorks software from the 
  5107.  distribution CDROM
  5108.  
  5109. 3    Mac OS
  5110.  
  5111.  Run the PCI license program (double click on the license
  5112.  icon in the etc folder within the  PCI folder) to get your system
  5113.  identification number.  
  5114.  
  5115.  Now, please contact PCI's Product Support to get your License Key, 
  5116.  then apply the key using the license program.
  5117.  
  5118.  Note: The license key is case sensitive.
  5119.  
  5120.     - Select `k' and enter your license key.
  5121.     - Select `a' to apply the license key.
  5122.     - Select `x' to exit from the license program.
  5123.  
  5124.  ImageWorks should now be ready to run.
  5125.  
  5126.  
  5127. 3    PC Platforms
  5128.  
  5129.  Note:  If PCI software is not on C: drive, substitute C: with the
  5130.  appropriate drive letter in the following instructions.
  5131.  
  5132.  The following steps take you through the licensing process:
  5133.  Open an MS-DOS command window (double-click the MS-DOS icon in the Main
  5134.  group)
  5135.  Type the following command to run the LICENSE program to print your
  5136.  4-character CPU ID Number:
  5137.         C:\PCI\ETC\LICENSE
  5138.  
  5139.  Enter X to exit the LICENSE program after the CPU ID is printed.
  5140.  Contact PCI's Support Department and tell them your CPU ID number.
  5141.  
  5142.  This can be done be telephone, fax or Email.
  5143.  PCI will give you a 27-character license key which must be applied
  5144.  before PCI programs can be run.
  5145.  
  5146.  Type the following command in the MS-DOS command 
  5147.  window (replacing "xxxxxxxx" with your 27-character license key):
  5148.  
  5149.         C:\PCI\ETC\LICENSE xxxxxxxx
  5150.  
  5151.  
  5152.  Type EXIT to close the MS-DOS command window.
  5153.  
  5154.  Write down your License Key and place a copy of it in a safe place in
  5155.  case you ever need to install PCI software again from CD-ROM.
  5156.  
  5157. 2    Post Installation Instructions
  5158.  
  5159.  For Unix:
  5160.  
  5161.  The post-installation for Unix is quite simple, and consists of making a
  5162.  few changes to your .cshrc or .login file (depending on which
  5163.  shell you use).  These are outlined in the window that pops up, and can
  5164.  either be made to each person's files, or to a system wide equivalent,
  5165.  depending on how many people are going to use ImageWorks.  The settings
  5166.  are:
  5167.  
  5168.  If you are using the C-Shell (csh), you must add these
  5169.  environment variables and add the PCI exe directory to
  5170.  your path by adding these lines to every user's .cshrc:
  5171.  
  5172.             setenv PCIHOME ./pci
  5173.             set path = ( $path $PCIHOME/exe )
  5174.  
  5175.  Or if you use the Bourne Shell (sh), you must add:
  5176.  these lines to every user's .profile:
  5177.  
  5178.             set PCIHOME=./pci
  5179.             export PCIHOME
  5180.             set PATH=$PATH:$PCIHOME/exe:
  5181.             export PATH
  5182.  
  5183.  For Windows 3.1, Windows 95, and NT:
  5184.  
  5185.  For Windows, the post install processing takes a number of steps, and 
  5186.  requires the user to reboot the system at the end for the changes to 
  5187.  take effect:
  5188.  
  5189.  For Windows 3.1:
  5190.  
  5191.  The first step is to select the User working directory.  This is a
  5192.  base directory for the user to work out of and is primarily used to
  5193.  allow different users to work without colliding with each other.
  5194.  
  5195.  
  5196.  For the AUTOEXEC.BAT file:
  5197.  - Add the PCI\EXE directory to the PATH.
  5198.  - Add the environment variable PCIHOME to point to the PCI directory 
  5199.    tree.
  5200.  - Add the environment variable PCIUSER to point to the user's 
  5201.    working directory.
  5202.  - Add the command to start PIPE.COM (from the PCI root area)
  5203.  - Add any necessary commands required for SMARTDRV (see your MS-DOS
  5204.    manual for information on SMARTDRV).
  5205.  
  5206.  For the CONFIG.SYS file:
  5207.  - Add ANSI.SYS if not already there.
  5208.  - Add any necessary entries required for SMARTDRV (see your MS-DOS
  5209.    manual for information on SMARTDRV).
  5210.  
  5211.  For Windows 95:
  5212.  
  5213.  For the AUTOEXEC.BAT file:
  5214.  - Add the PCI\EXE directory to the PATH.
  5215.  - Add the environment variable PCIHOME to point to the PCI directory 
  5216.    tree.
  5217.  
  5218.  For Windows NT:
  5219.  
  5220.  - Add the PCI\EXE directory to the PATH.
  5221.  - Add the environment variable PCIHOME to point to the PCI directory 
  5222.    tree.
  5223.  
  5224.  
  5225. 2    Running ImageWorks
  5226. @index{Running ImageWorks}
  5227.  
  5228.  Under normal circumstances ImageWorks is run by typing in the name of the 
  5229.  executable and the path of the directory it is in. For example, assuming the 
  5230.  directory /usr/pci/exe:
  5231.  
  5232.  UNIX:
  5233.  
  5234.    % /usr/pci/exe/imageworks
  5235.  
  5236.  On PC platforms:
  5237.  
  5238.    Double click on the ImageWorks icon to start.
  5239.  
  5240.  VMS:
  5241.  
  5242.    $ run pci:[exe]imageworks.exe
  5243.  
  5244.  It is also possible to add the directory path to your command search path, 
  5245.  to add an alias into your csh or ksh, or, in VMS, to define the symbolic 
  5246.  name for ImageWorks. Ask your system manager to show you how to do this. 
  5247.  If this set-up is used the following command would be sufficient:
  5248.  
  5249.    % imageworks
  5250.  
  5251.  Once ImageWorks is running, data can be loaded or viewing parameters set 
  5252.  interactively using the graphical interface. It is also possible to start 
  5253.  ImageWorks and automatically load data and set viewing parameters using 
  5254.  command line options. For example:
  5255.  
  5256.    % imageworks -ip 4 -datasize 768 768
  5257.  
  5258.  See the section on Command Line Options for more information.
  5259.  
  5260.  
  5261.